richardrottman

Add tags at the bottom of Astra

Dec 3rd, 2020
642
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data