Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Abhishek Prakash

    (@astrize626)

    Hello Sarmistha_25,
    I coded this plugin to show the signature or any other content in just posts single page. Because many uses large images or any other content which doesn’t look good on the home/posts page. Although if you want to show the signature on the home/posts page as well you can use this code, just paste it directly in the functions.php file of your theme.

    if( function_exists( 'apm_afterpost_manager_front_display' ) ) {
      // removes the function which shows signature only on the posts single page.
      remove_filter( 'the_content', 'apm_afterpost_manager_front_display' );
    }
    
    if( !function_exists( 'apm_afterpost_manager_homepage_display' ) ) {
      // This filter is hooked to the_content.
      add_filter( 'the_content', 'apm_afterpost_manager_homepage_display' );
    
      function apm_afterpost_manager_homepage_display( $content ) {
        // Globalize the $post for usage.
        global $post; 
    
        // Checks for the posts post type if available.
        if( $post->post_type == 'post' ) {
    	  // Checks for the editors value.
    	  if( isset( get_option( 'apm_afterpost_manager_options' )[ 'apm_afterpost_manager_editor' ] ) ) {
    	    $content .= get_option( 'apm_afterpost_manager_options' )[ 'apm_afterpost_manager_editor' ];
    		return $content;
          }
    	  else {
    	    return $content;
    	  }
        }
        else {
          return $content;
        }
      }
    }

    I hope this code fix your problem.
    I’m also going to launch the premium version of plugin. In which you’ll get some extra features and some extra shortcodes. I’ll feel good if you leave your views on it.

    Thread Starter sarmistha_25

    (@sarmistha_25)

    @abhishek It’s working now! Thanks a lot! 🙂

    Plugin Author Abhishek Prakash

    (@astrize626)

    You’re most welcome @sarmistha_25. And thanks for using my plugin. If you wish then you can leave your blogs web address here so that i can know which blog or website is using my plugin.

    Thread Starter sarmistha_25

    (@sarmistha_25)

    My site is http://styleovercoffee.com. I have also left a positive review and 5 star rating on your plugin 🙂 Thanks once again and all the best!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want my signature to show up in the home page as well’ is closed to new replies.