Skip to main content
17 events
when toggle format what by license comment
Dec 3, 2014 at 21:45 vote accept need-help
Dec 3, 2014 at 21:45 comment added need-help with the help of your code i have make some other code that fix the bug. but if you check your code and its work for you so for me i accept your answer. Thanks!
Dec 3, 2014 at 21:30 comment added need-help strange. i have content in the body and the code thing that this page content is empty or i dont know what else it can be. seems like it no skip the static home page
Dec 3, 2014 at 21:22 comment added Howdy_McGee Not sure, I was able to get it to work on one my simple sites, one caveat is that if $items array is empty it will list all pages.
Dec 3, 2014 at 21:12 comment added need-help still the home page is not in the menu.
Dec 3, 2014 at 21:05 comment added Howdy_McGee Updated my answer, try that.
Dec 3, 2014 at 21:05 history edited Howdy_McGee CC BY-SA 3.0
added 85 characters in body
Dec 3, 2014 at 20:59 comment added need-help to be honest i don't remember. but now i see this. "always show the homepage" is good solution. Thanks!
Dec 3, 2014 at 20:54 comment added Howdy_McGee @need-help did it do this before the blog conditional was added? I could just add another conditional to skip the homepage entirely ( always show the homepage ).
Dec 3, 2014 at 20:51 comment added need-help Hi @Howdy_McGee great the code works but with bug. it's also delete the home page from menu item. i have set some of the page as static page, and yes this page have body content. any suggestion?
Dec 3, 2014 at 20:47 comment added Howdy_McGee @need-help whoops, try that - blog_post wasn't a variable.
Dec 3, 2014 at 20:47 history edited Howdy_McGee CC BY-SA 3.0
added 1 character in body
Dec 3, 2014 at 20:44 comment added need-help Hi @Howdy_McGee i take your code and insert in funcastion.php and the website get white page. so somthing not working.
Dec 3, 2014 at 14:41 comment added Howdy_McGee @need-help You would have to run a small query just to check if there were any posts in that post type - I've updated my answer to reflect the comment.
Dec 3, 2014 at 14:40 history edited Howdy_McGee CC BY-SA 3.0
added 219 characters in body
Dec 3, 2014 at 6:56 comment added need-help Hi @Howdy_McGee yes thats help. Thanks! but i see another problem. i have page the show all posts(blog page) and this page dont removed from the loop if the user has not created any posts. so i can get this page by: $page_for_posts = get_option( 'page_for_posts' ); but how i can check if there is no posts, remove the page?
Dec 2, 2014 at 16:13 history answered Howdy_McGee CC BY-SA 3.0