Front end submission form not displaying CPTs

Support General Front end submission form not displaying CPTs

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #47905
    Tanja KropfTanja Kropf
    Participant

    Ok, helps if I turn on my code. It's working. Now, two more questions.
    --I'd like to limit the 30 posts only to myself, user id 1 (since the 4000 are under my ID)
    --is there a way to make the posts show up in descending order?

    #47906
    PeterPeter
    Moderator

    Hello,

    You can still use the filter hook rwmb_frontend_dashboard_query_args to adjust the dashboard, here is an example:

    add_filter( 'rwmb_frontend_dashboard_query_args', function( $args ) {
        $user_id = get_current_user_id();
    
        if( $user_id == 1 ) {
            $args['posts_per_page'] = 30; // show 30 posts based on user ID
        }
    
        $args['order'] = 'DESC';
        
        return $args;
    } );
Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.