real page ID when wirdget in a template with multiple loop.
-
I designed a template which, for a page, display the page content + a list of posts related to. At the end of the page I have a wirdget which needs to know the real Page ID. When using post-id() or page_id(), this gives me the ID from latest post displayed into my template loop, not the ID I see in the URL.
I can do that in the code but the widget will not be generic.How to get the real ID of the page whatever loop before ?
Thanks for your great help as usual
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘real page ID when wirdget in a template with multiple loop.’ is closed to new replies.