{"id":1187,"date":"2013-12-15T08:29:01","date_gmt":"2013-12-15T08:29:01","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=1187"},"modified":"2025-05-06T16:46:18","modified_gmt":"2025-05-06T15:46:18","slug":"homepage","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/pages-wordpress\/homepage","title":{"rendered":"Homepage"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Path to homepage<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>  wp_redirect( home_url( '\/' ) );\n  \/\/wp_redirect( home_url( '\/my_page_name' ) );    \/\/If you want to redirect to a specific page\n  die();<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Altering default homepage<\/h4>\n\n\n\n<p>\nTo create a customised homepage copy your index.php file and call it home.php.&nbsp; WordPress will use home.php for the home page of your site if it finds one, otherwise it will use index.php (there is also a more complicated way by changing settings).\n<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Showing posts from a specific category on the homepage<\/h5>\n\n\n\n<p>\nAdd this before the loop\n<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php query_posts('cat=2&amp;showposts='.get_option('posts_per_page')); \/*SPECIAL - ADDED TO ONLY SHOW POSTS FROM 1 CATEGORY ON HOMEPAGE*\/ ?&gt;<\/code><\/pre>\n\n\n\n<p>\n&nbsp;\n<\/p>\n\n\n\n<p>\n&nbsp;\n<\/p>\n\n\n\n<p>\n&nbsp;\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Path to homepage Altering default homepage To create a customised homepage copy your index.php file and call it home.php.&nbsp; WordPress will use home.php for the home page of your site if it finds one, otherwise it will use index.php (there is also a more complicated way by changing settings). Showing posts from a specific category [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-1187","post","type-post","status-publish","format-standard","hentry","category-pages-wordpress"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=1187"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":4972,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1187\/revisions\/4972"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}