Reputation
1,783
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 10 23
Newest
 Yearling
Impact
~135k people reached

  • 0 posts edited
  • 0 helpful flags
  • 189 votes cast
1d
comment Displaying All Data from Custom Post Type Fields through Advanced Custom Fields
I think you'd need to add the post ID to make this work from within a loop on the archive page: have_rows('attorney_areas_of_practice', $loop->ID) - see advancedcustomfields.com/resources/have_rows
Dec
1
comment Where and how to define variables for URLs etc
Yeah, it's amazing how many variables/constants WordPress supplies. I just found this: codex.wordpress.org/Determining_Plugin_and_Content_Directories
Oct
16
comment Filter and list posts of a custom taxonomy
Would this work? wordpress.stackexchange.com/questions/22093/…
Sep
29
comment Custom post type “preview” not working
Yes, I've been resaving permalinks between each change to the CPT. The regular-view of the CPT has always worked fine, it's only the Draft-status previews not working. Once published, the preview works. But my authors want to preview before publishing. :)
Sep
24
comment How to remove anchor of current menu item in navbar?
To remove it altogether you'd probably need to write your own walker (codex.wordpress.org/Class_Reference/Walker_Nav_Menu) or do some jQuery magic. Or you could fake it via CSS by forcing the .current-menu-item > a cursor to 'default': w3schools.com/cssref/…
Sep
24
comment Limit widget to a specific registered sidebar
Do you want to limit the display of that widget (so it only appears on single.php / single blog posts)? or do you need to disable the ability of admins to drag it into other sidebars in the control panel? There are options for the former but I'm not sure about the latter.
Mar
6
comment TinyMCE format dropdown no longer showing style previews
Still working (and necessary) in WP 4.1.1! Thanks so much :)
Feb
25
comment Modify shortcode to work with custom taxonomies and slugs
What are you submitting via shortcode for the post type? It has to be what was used in register_post_type().
Feb
19
comment Output single post custom taxonomy child terms
I think what you're looking for is get_the_terms(): codex.wordpress.org/Function_Reference/get_the_terms
Feb
3
comment Split on self closing shortcode and retrieve args,
I find with non-tech users even shortcodes can be too confusing. You might want to consider giving them custom fields to enter content (the plugin Advanced Custom Fields wordpress.org/plugins/advanced-custom-fields makes this super easy) and then in your CPT template put the fields in different tabs. For tab implementation, maybe look at the code in wordpress.org/plugins/tabby-responsive-tabs
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. :)
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.