• Resolved HeliR

    (@helir)


    First: i LOVE catlist !!!!! payed several times!

    health blog with only one user (me), catlist shows me private posts + public published.

    I cannot discern from frontend if I publicly published a post already or it is still set to private (while I am researching and adding)

    would love a switch that adds to the post-title “PRIVATE” if not “public”

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter HeliR

    (@helir)

    here is the solution, mybe add some css selecotr in addition, I just added the lines

      if($single->post_status=="private"):
           $info .=" private";
        endif;

    Line 395 – lcatdisplayer

    
      private function get_post_link($single, $text, $class = null){
        $info = '<a>ID) . '" title="' . wptexturize($single->post_title) . '"';
    
        if ( !empty($this->params['link_target']) ):
          $info .= ' target="' . $this->params['link_target'] . '"';
        endif;
    
        if ( !empty($class ) ):
          $info .= ' class="' . $class . '"';
        endif;
    
        $info .= '>' . $text . '</a>';
        
      if($single->post_status=="private"):
           $info .=" private";
        endif;
    
        return $info;
      }
    • This reply was modified 5 years, 6 months ago by HeliR.
    • This reply was modified 5 years, 6 months ago by HeliR.
    Plugin Author Fernando Briano

    (@fernandobt)

    Thanks for the suggestion! I’m currently working on version 0.80 and I’ve added this feature:

    * Added “private” text next to a post’s title when it’s private, thanks to a suggestion by @cmccrone in the support forums. The text is published with the following html: <span class="lcp_private"> private </span>, so you can customize the CSS (hide it, change its color, etc.).

    Please update once it’s available and let me know if it’s working ok for you.
    Cheers!

    Hi Fernando,

    I know understand: It’s a feature, not a bug ??

    In my case, all listed posts are private, so I don’t want to see the “private” after posts title. Can you please let me know, how I can get rid of it?

    Many thanks in advance!

    Peter

    Plugin Author Fernando Briano

    (@fernandobt)

    Hi Peter,
    You can hide this text by adding this on your theme’s CSS file:

    
    .lcp_private{
      display: none;
    }
    

    But I’m not sure if this was the ideal solution to show “private” right now, I’m thinking it should be hidden by default and making it an option in the shortcode to display it would be better.

    Hi Fernando,

    quick solution, works fine for me! Thanks a lot!!
    … might be easier for non-technical persons, to have an option in the shortcode to display it, if needed. No hassle with css-syntax than …

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘post_title + “private” when admin logged in’ is closed to new replies.