Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @nykoliuk, sorry for the delay.

    Well, using get_option(), we can get ID’s of all unlisted posts. For example

    $query = new WP_Query( array( 'posts_per_page' => -1 ) );
    $hidden_posts = get_option( 'unlist_posts', $query );

    $hidden_posts this will contain array of all unlisted posts ID’s.

    I hope it will help.

    Kind regards,
    Herman ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi,

    I hope you find my previous reply useful for you.

    I am going to mark this topic as Resolved due to the lack of activity. Feel free to reply to this thread or start a new topic if you need further assistance.

    Kind regards,
    Herman ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get all posts together with unlisted’ is closed to new replies.