maximelebastard
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Themes and Templates
In reply to: Custom theme : page-home.php displays all postsI call localhost/mywordpress/?q=home, which is also the homepage I setted in the WordPress admin panel.
Wordpress renders the page with the page-home.php file, that I created. The Page “Home”, with the identifier “home” is supposed to be showed, but instead of that, I get the “Gear” page content.Forum: Themes and Templates
In reply to: Custom theme : page-home.php displays all postsUnfortunately no, I’m working in a local environnement…
What details do you want ?
Forum: Themes and Templates
In reply to: Custom theme : page-home.php displays all postsFinally, it does not work… I added another page with the identifier “gear”, and even if the page-home.php template is the one which is displayed, the_content() function returns the “gear” page content…
I tried this piece of code, but the_content() stills return the wrong page:
$page_object = get_queried_object(); $page_id = get_queried_object_id(); var_dump($page_id); get_post($page_id);Forum: Themes and Templates
In reply to: Custom theme : page-home.php displays all postsAnnd POW! It just works !
It seems quite evident now that I’ve got the answer, thank you !
Viewing 4 replies - 1 through 4 (of 4 total)