Support » Plugin: WPAdverts - Classifieds Plugin » BUG: WPAdvert causing all "Pending Review" WordPress posts to show on blog.

  • Resolved Mark

    (@markob17)


    Hi, I have a multi-author blog and any time a contributor submits a post for review it shows up on the front-end of the website. When I disable WPAdverts the pending review posts no longer show per wordpress design. Tested on default theme, no plugins enabled, etc. This will be a major problem for large multi-author blogs where contributors submit posts for review. I tested draft posts and they do not show on the front-end, only pending review posts.

    https://wordpress.org/plugins/wpadverts/

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

    (@gwin)

    Hi,
    hmmm i understand this is a problem with post_stauts = pending, please try opening file wpadverts/addons/payments/payments.php find there code

    register_post_status( 'pending', array(
        'label'                     => _x( 'Pending', 'pending status payment', 'adverts' ),
        'public'                    => true,
        'exclude_from_search'       => false,
        'show_in_admin_all_list'    => true,
        'show_in_admin_status_list' => true,
        'label_count'               => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'adverts' ),
    ) );

    and change it to

    register_post_status( 'pending', array(
        'label'                     => _x( 'Pending', 'pending status payment', 'adverts' ),
        'public'                    => is_admin(),
        'exclude_from_search'       => false,
        'show_in_admin_all_list'    => true,
        'show_in_admin_status_list' => true,
        'label_count'               => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'adverts' ),
    ) );
    Thread Starter Mark

    (@markob17)

    Hi Greg,

    This appears to have resolved the issue. Will this fix be added in your next plugin update?

    Regards,

    Mark

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, i will need to check if it does not prodce any other errors, if it doesn’t then this change will be in next WPAdverts release.

    Thread Starter Mark

    (@markob17)

    Sounds good Greg. So far seems to work great and I haven’t noticed any issues. Appreciate the quick solution you provided.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BUG: WPAdvert causing all "Pending Review" WordPress posts to show on blog.’ is closed to new replies.