Trying to find id of main home page for directory
-
Hi
I’m trying to install a slider for the directory paort of my website.
I only want to display the slider on the main page and I’m trying to find the right hook for a conditional on mu holidat sirectory page php file.
I know I can add the slider to the main_page.tpl file in BD plugin but I want the slider to strech across the top of the page including the sidebar. this means I need to do it on the page template with a conditional.
The code I’m using is
if ($page_id = wpbdp_get_page_id('main')) { echo 'insert slide call'; } else {}
This works but it inserts the code into all the pages – the home page, categories and single pages.
I’ve tried lots of different possibilities such as ‘home’, ‘index’, ‘front’, ‘directory’ but I can not find the page id for the main entry page to the directory.Could you let me know what the id is please ??
thanks
Kevin
- The topic ‘Trying to find id of main home page for directory’ is closed to new replies.