Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    Can you give me a link to one of those member pages on your site?

    I don’t understand where the “Positions: Members” link is coming from… that is NOT something that my plugin is generating. It must be something that the POST template in your theme is somehow generating.

    Also that link you listed:
    https://mysite.com/member_category/members/

    should not even be a possible link, and would definitely give you a page not found error. If you wanted a link for a specific category, it would be something closer to:
    https://mysite.com/member_category/president/
    but, that won’t work either.

    If you are wanting to show all members for a specific position, I have shortcode or link arguments you can use. For example, if you want to show all members who have the position President, you could either use an argument in a link to the directory, such as:
    https://mysite.com/directory-page/?position=president
    Or, if you want a page that only shows members who have the President position, you can put a shortcode on that page with the position argument:
    [pta_member_directory position=”president”]

    But, back to that “Positions: Members” link, I think you need to find out what’s going on in your post template, and create a custom template for the member post type that does NOT show that link.

    Thread Starter capgwu

    (@capgwu)

    I sent you PM on your website

    Plugin Author DBAR Productions

    (@dbar-productions)

    OK… Took a look, and, yes, that is something your theme’s default POST template is putting at the bottom of the individual posts.

    Are you using a child theme so you can customize easily without losing changes where updating the parent theme?

    Either way, the “simple” solution is to create a copy of your theme’s default single.php post template and name it single-member.php
    Then, edit the single-member.php file and remove the section that is showing that link below the content area (before the footer).

    Then, if you are using a child theme, you put the single-member.php file in the root directory of your child theme folder. If you are not using a child theme, just put it in the root directory of your theme’s folder (same directory where single.php is located).

    If you are not sure how to make that edit, send me a copy of your theme’s single.php file and I can do a quick edit for you and send it back as single-member.php for you to upload to your server.

    There is nothing I can do in my plugin to fix that, so you need to modify that template. You can also just modify single.php so it won’t show that category info/link at the bottom of ANY post types.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Also, see this page in the WP Codex for how template hierarchy works in WordPress:

    https://codex.www.ads-software.com/Template_Hierarchy

    Plugin Author DBAR Productions

    (@dbar-productions)

    Marking resolved as we worked this out with the theme template privately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to "Positions: Members" inside of a profile’ is closed to new replies.