-
AuthorPosts
-
September 24, 2015 at 12:13 pm #401320
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
September 24, 2015 at 3:20 pm #401520Would 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
September 24, 2015 at 3:33 pm #401533This reply has been marked as private.September 24, 2015 at 5:54 pm #401630This reply has been marked as private.September 24, 2015 at 8:09 pm #401717This reply has been marked as private.September 24, 2015 at 9:07 pm #401744Hello 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 beis_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_TagsHope this helps. Kindly let us know.
-
AuthorPosts