Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mycreativeway

    (@mycreativeway)

    Sorry, wrong question,

    Actually case is,

    I have 5 member directories.

    So, I have shown each directory as list.
    so I’m listing 5 directory names as list.

    And to show each directory as list I’m using
    new WP_Query( array( 'post_type' => 'um_directory', 'posts_per_page' => -1) )

    Now, on clicking any of those list item, i want to take user to listing page of those members. I tried using single-um_directory.php template but its not working.

    Plugin Author Ultimate Member

    (@ultimatemember)

    You have to build custom templates manually, as the post type um_directory is private/not publicly queryable.

    Thanks

    Thread Starter mycreativeway

    (@mycreativeway)

    How do I make custom template for single um_directory?

    if I open this url for single um_directory post, it gives 404 error.
    https://localhost:8888/%5Bproject%5D/um_directory/sales-team/

    I tried making single custom template, “single-um_directory.php”, still it gives 404.

    Plugin Author Ultimate Member

    (@ultimatemember)

    No obviously custom templates won’t work as that post type is used internally not public so these templates won’t work that way as regular post type. The post type was developed for internal UM use only, you can build queries around it but the development itself need to be custom you can’t have um_directory/xxxx or single-um_directory

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get list of "Member Directories "?’ is closed to new replies.