Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 6477

Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

0
votes
Don't use query_posts() use the WP_Query class instead... the link to the Codex will also reference all the appropriate query parameters. The following would query the most recent post in a particula …
answered Aug 26 '13 by helgatheviking
1
vote
It depends on where you are in the <head>. Take a look at the Plugin API/Action reference. The post object is not set up until the wp hook. If you are adding this conditional, manually the header.ph …
answered Feb 20 '13 by helgatheviking
1
vote
Use pre_get_posts to modify the query before it is executed: function include_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '17' ); } …
answered Mar 26 '14 by helgatheviking
1
vote
i think you'd have to use get_posts 5 different times. what about this: global $post; $posts = array(); //categories you want to pull latest posts from; $cats = (1,2,3,4,5); foreach($cats as $cat …
answered Aug 18 '11 by helgatheviking
1
vote
Untested, but adapting from the Codex example for filtering the post class... basically changing get_the_categories() to get_the_terms and accounting for the name of the Product Category taxonomy. // …
answered Sep 27 '13 by helgatheviking
1
vote
Try looking in the Codex for answers. You will find that get_term_link() creates links to terms. foreach( $parents as $parent ) { echo get_term_link( $parent ); }
answered Apr 3 '13 by helgatheviking
2
votes
I just double checked and WooCommerce runs the product category description through the_content filters, which means that it should run shortcodes. WooCommerce has plenty of shortcodes, see their doc …
answered Jul 26 '13 by helgatheviking
17
votes
Actually, I wrote a plugin for exactly that. http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ In the plugin settings you define which taxonomies you'd like to apply this restricti …
answered Dec 6 '12 by helgatheviking
2
votes
if you need to pre-create some terms you can add the following into the init function that registers the taxonomy. it will create the term foo in the recordings taxonomy if (!term_exists( 'foo', 're …
answered Apr 2 '12 by helgatheviking
1
vote
Ok, try this. It should capture the current category object and then go up the chain until it finds the current categories top-most ancestor. // get the category object for the current … , 'orderby' => 'name', 'order' => 'ASC' ); $categories=get_categories( $args ); foreach( $categories as $category ) { echo '<a href="' . get_category_link( $category->term_id …
answered Sep 13 '12 by helgatheviking
1
vote
i'm not sure what you are trying to achieve w/ the $paged variable. seems like you could simplify your query though $posts_per_page = is_paged() ? 5 : 2; $args=array( 'post_type'=>'post', …
answered Jul 17 '12 by helgatheviking
11
votes
you could use wp_parse_args() to merge your arguments into the default query // Define the default query args global $wp_query; $defaults = $wp_query->query_vars; // Your custom args $args = array( …
answered Mar 7 '12 by helgatheviking
1
vote
1. CSS/HTML issues are off-topic for this site, per the FAQ. But, have you tried investigating with Firebug or Chrome's dev tools? The answer is obvious in seconds. This page http://www.biz.uiowa …
answered Apr 1 '13 by helgatheviking
0
votes
looped html markup is off? And is maybe not printing the results correctly. I've modified your code to only have 1 get_categories() and categories loop. I don't know if it is more or less "readable … " this way, but it seems to work for me. $args = array( 'orderby' => 'name', 'parent' => 13 ); $categories = get_categories( $args ); $tabs = ''; $panes = ''; if( $categories ){ $tabs …
answered Aug 21 '14 by helgatheviking
3
votes
if(is_category('awesome-category')) echo "whoa awesome category here!!; probably in category.php, but it really depends on the setup of your theme... if you are using a child theme, etc. also you c …
answered Feb 24 '12 by helgatheviking

15 30 50 per page