Advertisement
richardrottman

Add tags at the bottom of Astra

Dec 3rd, 2020
1,182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. add_action( 'astra_entry_content_after', 'add_script_after_entry_after' );
  2. function add_script_after_entry_after() {
  3.     if ( is_single() ) {
  4.             echo '<div class="after-content-tags">';  
  5.             echo '<h5>Tags</h5>';
  6.             the_tags('', ', ', '<br />');
  7.             echo '</div>';
  8.         } // end of if is_single()
  9.     } // end of add_script_after_entry_after()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement