Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #401320

    Enableit
    Participant

    Hello,
    I’m attempting to get widget logic to run on post parent and child pages. The parent page displays the widget fine, but will not display on any of the post pages.

    Here you can see the widget populating on the left hand sidebar as should be:
    http://ethernetextender.net/technology-uses/

    Here is one of the posts with no widget:
    http://ethernetextender.net/solar-energy-industry-charged-up-about-panel-security/

    I have tried several different conditionals and still been unable to get the menu onto the post page.

    help?

    Thanks,

    Tyler

    #401520

    Jade
    Moderator

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #401533

    Enableit
    Participant
    This reply has been marked as private.
    #401630

    Enableit
    Participant
    This reply has been marked as private.
    #401717

    Enableit
    Participant
    This reply has been marked as private.
    #401744

    Rue Nel
    Moderator

    Hello There,

    Your widget “Technology Uses” doesn’t show up in single post because your condition is is_page('Technology Uses'). It will only display on the page “Technology Uses”. The first menu you have this condition: get_post_type()=='post' && is_page('Solar Energy Industry charged up about Panel Security') and it is incorrect. It should be is_single() or is_single(‘Solar Energy Industry charged up about Panel Security’).

    If it is a page you use is_page() and if it is a post you use is_single().
    For more details about the condition, please check the codex: https://codex.wordpress.org/Conditional_Tags

    Hope this helps. Kindly let us know.