Front page ID
-
Does WP provide any function which outputs the ID of the page set as front page in options? I need that to resolve the problem with double links to the front page when using static front page and themes (one way to fix this is described here). But I had an idea to use
get_list_pages()
with ‘exclude’ argument set to the ID of the front page but could not find any function which outputs the ID of the page set as front page in options. One can of course set the argument manually but the code should be edited every time the front page changed.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Front page ID’ is closed to new replies.