Parhelion
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Can not get content to showWrong function used. Solved this myself, I was looking for the_content()
Forum: Fixing WordPress
In reply to: Simple HTML Question – Images with LinksNevermind, just fixed it with a table.
Forum: Fixing WordPress
In reply to: Unable to get current page IDResolved.
get_post_ancestors returns empty if there are no parents, which would be the case if I was actually ON the top-post page. I’ve modified my code to fix this.
Thanks to Kapil for help. 😀
Forum: Fixing WordPress
In reply to: Unable to get current page IDThe $page_ID in my code IS being successfully passed.
The problem appears to be
if( in_array($about_ID, $ancestors) == TRUE ){ return 1; }This if statement NEVER returns 1.
Am I misusing in_array? Or is there any reason why $ancestors wouldn’t work?
Forum: Fixing WordPress
In reply to: Unable to get current page IDUpdated the get_submenu() function to include the line:
global $wp_query, $post;
And passed the page_ID to the next function.
However, that did not seem to fix the problem, as I still cannot get a submenu to show up on any About related page.
Forum: Fixing WordPress
In reply to: Custom postingIf you don’t want to use a ready-made plug-in, type in ‘custom post types’ in the search bar at the top of this site and it’ll give you a list of links. I think the very first link leads to the developer documentation for custom post types.
If it’s confusing (and it often is) scroll to the very bottom of the page where it gives “additional resources” — there’s another link to an excellent blog post about how to create your own and trouble-shoot them. Very newbie friendly.