• Resolved NetBizCoach

    (@netbizcoach)


    Hello. First of all, thank you for a great plugin.

    The one minor issue that I am having is when a user ‘Previews’ their post the ‘Title’ doesn’t show. I am only in the testing phase but from a UI perspective, it is hard to tell if the post is correct prior to publishing without this. Am I missing something in set up or can this be added?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the preview does not actually show the title, if you would like to include it, then you can do that by adding the code below in your (child)theme functions.php file

    
    add_action( "adverts_tpl_single_top", function( $post_id ) {
      if( is_singular( 'advert' ) ) {
        return;
      }
      echo sprintf( '<h3>%s</h3>', esc_html( get_the_title( $post_id ) ) );
    }, 1 );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Post Preview Doesn’t Include Title’ is closed to new replies.