Last active
August 4, 2018 04:52
-
-
Save wpweb101/0e2e9361e518e6bd6716 to your computer and use it in GitHub Desktop.
Follow my blog post - add support for term follow buttions on category archive page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post, $wp_query; | |
echo do_shortcode('[wpw_follow_term_me posttype="'.$post->post_type.'" taxonomy="category" termid="'.$wp_query->query_vars['cat'].'"][/wpw_follow_term_me]'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment