Home Forums Plugin Support WP User Frontend Pro List multiple custom post types

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  madegood 6 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3865

    madegood
    Participant
    Post count: 13

    Hi,

    I want to list multiple custom post types in a single list on the user dashboard page. Please can you tell me how to do this. I assumed there might be an action hook or filter, but couldn't see one.

    — OR —

    could you tell me how to build an ‘edit page' and ‘delete page' link so I can build my own dashboard page from scratch.

    Thanks!

    #3954

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry for replying late, here's how you can do that:

    [php]
    function wpufe_dashboard_query( $args ) {
    $args[‘post_type'] = array( ‘post', ‘custom_post', ‘another_one' );

    return $args;
    }

    add_filter( ‘wpuf_dashboard_query', ‘wpufe_dashboard_query' );
    [/php]

    Add this snippet to your themes functions.php and give the correct post type in that function.

    #3992

    madegood
    Participant
    Post count: 13

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘List multiple custom post types’ is closed to new replies.