Get X posts for all post types on Taxonomy term archive
Get X posts for all post types on Taxonomy term archive
Get X posts for all post types on Taxonomy term archive
Look at this section (excerpt): Day and name – An example of the day and name based structure is http://www.sample.com/2008/03/31/sample-post/ Month and name – An example of the month and name based structure is http://www.sample.com/2008/03/sample-post/ Numeric – An example of the numeric structure is http://www.sample.com/archives/123 Those are archives– specifically the first two are “date” archives. … Read more
Category archives
I usually do this by getting data from database $result = mysql_query(“SELECT * FROM wp_terms JOIN wp_term_taxonomy ON wp_term_taxonomy.term_id = wp_terms.term_id WHERE wp_term_taxonomy.parent = “.$parent_cat_ID.” AND wp_term_taxonomy.taxonomy = ‘product_cat'”);
Fixed. I used code: <div class=”panel callout radius”> <?php echo get_avatar( get_the_author_meta( ‘user_email’ ), ’96’ ); ?> <div class=”right”> <a href=”https://twitter.com/<?php the_author_meta( ‘twitter’ ); ?>” target=”_blank”><i class=”fi-social-twitter size-24″></i></a> <a href=”<?php the_author_meta( ‘facebook’ ); ?>” target=”_blank”><i class=”fi-social-facebook size-24″></i></a> <a href=”mailto:<?php the_author_meta( ’email’ ); ?>”><i class=”fi-mail size-24″></i></a> Then I found out this function could only be used … Read more
You can use get_queried_object to return the full queried term object on a taxonomy archive page. $term = get_queried_object(); if( 0 === $term->parent ){ // term is top level } else { // term has parent }
date archive future posts
pealo86 reports that this issue has been resolved thanks to Pieter Goosen’s suggestion in the comments to re-save permalinks. Are you using your index.php as a taxonomy page? If so, it should work if you do not have a taxonomy or archive template in your theme. Just another question, have you re-saved your permalinks?
I have created a working solution to this. I wrapped the JavaScript in a DIV. All other content is automatically wrapped in paragraph tags. In archive.php, I have it pull the most recent post in the section where I want the video. In the CSS, I have set display:none to the paragraph tags. Thanks everyone!
Disable archiving of old posts?