Hi,
Thanks again for the help on my post here (https://wpshowposts.com/support/topic/caching-issues-categories-not-styled-as-assigned/)
I’ve got a few related questions. I was all set to do the same routine for the author.php file when I realized there is no author.php file. And now author & tag archives come up with “no posts”
So if I wanted to extend the same functionality of this code snippet to author, tags (not sure what else to list) can I modify this and place it right below to build a stack of if-else statements?
if ( is_single() ) {
$cats = get_the_category();
$cat = $cats[0];
} else {
$cat = get_category( get_query_var( 'cat' ) );
}
$cat_slug = $cat->slug;
wpsp_display( 13607, 'tax_term="' . $cat_slug . '"' );
I’ve looked in the includes folder for similar get_the_ functions, but no luck. Would it be get_the_author()
and get_the_tag
?
Hopefully I’m not missing some other important aspects of the above code.
Sorry if this is pushing the envelope of what WPSP was designed for, but I just need some examples and pointers sometimes to get going. Thanks again in advance.