Greetings

Tell me how to display the NC of scheduled entries?

the_permalink() not suitable, because according to the status code of the posts 'draft', 'pending', 'auto-draft', 'future' will be "ugly" (not CNC).

  • And why do you need to permalink a record that does not exist anywhere except the admin panel? - KAGG Design 1:01 pm
  • @KAGGDesign, then, that these records are displayed in the events as "future" =) - Nikolay
  • I already understood that. Well, then I would take the_permalink () code, rename it to my_permalink (), insert this code in the theme or in my plugin. And in the code I threw out a check for pending and would form a link according to the general rules of wp, as for a published post. - KAGG Design
  • @KAGGDesign, this is the most obvious solution) is it just that there are some standard ways to solve this problem, I didn’t really want to duplicate the code. - Nikolay
  • There are no hooks in the code that allow it to "climb". The last hook "at the exit" will not do anything. Anyway, your code needs to form a link. - KAGG Design

0