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

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
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/…
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
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
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. :)
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. :)
Jul
9
comment event propagated to google calendar
I'm not sure what you mean by default events widget, but try the plugin Event Organiser: wp-event-organiser.com You can set up events in WordPress, then subscribe to the calendar feed via Google or iCal. When events are edited/added/deleted in WordPress the feed being sent to Google updates as well.
Jun
26
comment Custom blog setting directs blog to index page
blog.php isn't part of the template hierarchy, which is why your posts are displaying per code in the index.php template. See the links in this answer for more info: wordpress.stackexchange.com/questions/149446/…
Jun
17
comment Post does not disappear
If you go into the control panel > Posts, do you see a small link for "Trash" at the top of the list of posts? If so go to that and 'Empty trash' / permanently delete the post. That might be the issue.
Jun
17
comment Adding an existing subfolder site to a fresh multisite in the root, would it cause a problem?
Will your multisite installation be a subfolder installation, or subdomain? I think it would work fine with a subdomain installation.
May
11
comment Admin-area broken through weird issues
Try reuploading all the WordPress files, sometimes this can happen if there was a glitch in the original upload.
May
10
comment Is there any way to add a “custom field” to the CPT archive page?
Yep you could do that. You might want to buy the cheap "Options" add-on for ACF so you can keep those fields separate.
May
10
comment Is there any way to add a “custom field” to the CPT archive page?
@AndreaMoro, yes, in the area where it says "show this field group when" select "Taxonomy Term" from the drop down and then either choose the category/tag or just 'all'. I think this tutorial might help with what you're doing: advancedcustomfields.com/resources/tutorials/…
May
9
comment Is there any way to add a “custom field” to the CPT archive page?
I'm not sure how to do this code wise but you could dig through the "WordPress SEO by Yoast" plugin to see how he does it. Or use a plugin like Advanced Custom Fields to add custom fields for your category/archive pages which could then be displayed via your theme.
May
2
comment I need to exclude from a query a category and a few custom taxonomies
I'm not sure why the above isn't working but you might want to try using pre_get_posts with a function instead? codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
May
2
comment get_post_meta with WP_query
Did you try echoing $queryObject->post->ID - does that worK?
Feb
10
comment User submitted content
If that's not working, no sorry I don't. Have you tried the Gravity Forms forums? You'd think they'd have incorporated CPTs into the core by now, sheesh.
Feb
9
comment User submitted content
Ah - yes, agreed, Gravity Forms doesn't do that. I haven't had cause to explore this before but maybe one of these will work for you? premium.wpmudev.org/blog/…
Feb
8
comment User submitted content
At what point do you need to make edits to the submissions? I've done this with Gravity Forms and it worked for me. You do have to have the upgraded version so you can create posts directly from GF, but then you should be able to create a new post (with categories, custom fields etc) from GF and set its status to 'draft' so you can make edits before publishing.