Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
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
List just subcategory and products of active category page in Woocommerce
I cobbled this code together from different ideas online, and seems to work:
<?php foreach ( $product_categories as $product_category ) {
echo '<h2><a href="' . get_term_link( $product_category ) …
0
votes
2
answers
79
views
What code to use in an array to call the current sub-category?
sub-category - bags:
$args = array( 'post_type' => 'product', 'product_cat' => 'bags')
$loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post();
I can hardcode list all the sub-categories …
0
votes
2
answers
3k
views
List just subcategory and products of active category page in Woocommerce
I can list all categories of the shop with all subcategories and all products - So for example bags would list all products of the whole shop. … The code I am using that works great, but loops all the categories in the shop, and not just the active category is:
$args = array('taxonomy' => 'product_cat' ); $all_categories = get_categories( $args …
0
votes
Display Image for a category using get_categories, or show an image from any child post
Wordpress has the code - http://codex.wordpress.org/Function_Reference/get_the_category
Show Category Images
This outputs category images named after the cat_ID with the alt attribute set to cat …
1
vote
3
answers
2k
views
How to show more than 5 posts?
I am running code that shows child categories, and all posts in the child categories. But if there are more than 5 posts in a category, only the 5 newest are shown. … php
$args = array(
'child_of' => 1
);
$categories = get_categories( $args );
foreach ($categories as $category) {
echo '<li><a>'.$category->name.' …
5
votes
4
answers
70k
views
Display Image for a category using get_categories, or show an image from any child post
I am using get_categories to list the child categories of a parent category.
I want to add an image to the child categories, using the get_categories output. … The code I currently use is
$args = array('child_of' => 1 );
$categories = get_categories($args);
foreach($categories as $category) {
echo '<p>Category:'. $category->name.' …
0
votes
Can I style single post that are in multiple catergories?
just use a responsive theme and 1 category. Non mobile will get content shown for them. Mobile will get styles for them. Magic