1,688 reputation
1722
bio website friendlywebconsulting.com
location Austin, TX
age
visits member for 4 years, 4 months
seen 1 hour ago

I'm a geek, married to a geek, born of a geek. I love working on WordPress sites and finding cool new stuff on the internets.


Dec
2
comment Display child page on parent
Have you tried removing 'parent' => $post->ID from the get_pages parameters? and/or removing 'child_of' => $post->ID (leaving in the parent parameter)?
Nov
23
awarded  Custodian
Nov
23
reviewed Reviewed How to create .pot files with POedit?
Nov
23
comment If page is a taxonomy do X, if is a term, do Y
Agree with Milo. On taxonomy-slug.php you're showing an archive of the posts associated with one term in that taxonomy (that's what you're identifying in get_query_var('term')). So I guess I'm not understanding what you need. What "taxonomy" specific info do you need to display, vs "term" specific info?
Nov
22
comment If page is a taxonomy do X, if is a term, do Y
Where are you putting this code? Could you use the template hierarchy rather than an if/else statement? codex.wordpress.org/…
Nov
17
answered If statement within PHP echo
Nov
7
asked Add class to oEmbed video from within post editor?
Oct
30
comment More efficient query to display posts in same sub-category?
@ialocin My client isn't sure if they want this in the sidebar or after the post content, thus the shortcode. Out of curiosity, why would a widget be beneficial? would that render faster than a shortcode?
Oct
30
revised More efficient query to display posts in same sub-category?
question may be moot
Oct
30
comment More efficient query to display posts in same sub-category?
OK wow! the code was in a "plugin", basically my shortcodes copied into a plugin.php file so they wouldn't be in functions.php. When I saw your question, I tried moving the code into functions.php & it seemed to speed up enormously (Debug Queries still gave same result, but sidebar seems to load instantly now). Moved it back to the plugin, and same - still faster experience. I may have been fooled by Chrome caching an earlier version that was throwing PHP notices?? (If you mean where do I call the shortcode, it's in Black Studio's TinyMCE widget in the sidebar of a single post page.)
Oct
30
asked More efficient query to display posts in same sub-category?
Oct
30
accepted Change sub-menu position of custom taxonomy
Oct
30
comment Change sub-menu position of custom taxonomy
Thanks! I ended up using a plugin but I appreciate the answer. Good to know I wasn't going crazy looking for a clean way to handle it. :)
Oct
9
awarded  Curious
Oct
8
asked Change sub-menu position of custom taxonomy
Sep
23
revised get only sub category ID
reversed if statement
Sep
23
comment get only sub category ID
You're right @milo, it was backward. I've updated the code to look for categories with parents. thanks! Hope it works. :)
Sep
23
answered get only sub category ID
Sep
12
awarded  Notable Question
Aug
11
awarded  Yearling