Advertisement
fauzanjeg

Add Custom Content after Article

Apr 7th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. /* Add Custom Content after Article */
  2. function content_after_article() {
  3.     echo '<h1 style="color: red;">Hello, Im a Custom Content After The Article </h1>';
  4.     /* Example work with shortcode */
  5.     echo do_shortcode( '[jnews_element_newsticker newsticker_title="NEWSFLASH" date_format="ago" autoplay_delay="3000" newsticker_animation="vertical" number_post="5" post_offset="0" sort_by="latest" enable_autoplay="true"]' );
  6. }
  7. add_action( 'jnews_single_post_after_content', 'content_after_article' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement