WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Menu and the blog page (3 posts)

  1. deltina
    Member
    Posted 7 years ago #

    Since using the static home page, I notice that all of my sites that I have dynamic menu highlighting set up on do not highlight the blog (posts) page in the menu when the user lands there. Is there a test I need to put in the code to check that it is that page? I am assuming that is_home() is now the static home page - so what is the default posts page then? Or should I name the page something different than "blog"?

  2. chuckp
    Member
    Posted 7 years ago #

    Has anybody had any luck with this - I'm having the same issue on stpaulsms.org. Thanks!

  3. chuckp
    Member
    Posted 7 years ago #

    Hey deltina - I figured out a work around for my site since I only post to one category on our blog. The codex on the new Static and Posts page features notes that if you don't make an entry in the Posts page then you have to use "category, calendar, or archive links" to link to your blog page. So I removed my Posts page entry and linked to the single category I post to and used the "is_category" call instead of the "is_page" call to make my dynamic menu highlight when I'm on the blog page. See http://codex.wordpress.org/Reading_Options_SubPanel for info on the new Static and Posts page and see http://www.stpaulsms.org, "News" link, to view the work around in action.

Topic Closed

This topic has been closed to new replies.

About this Topic