Support » Plugin: Team Rosters » No player bio link from roster

  • Resolved easypc


    I just installed this plugin for the first time and was trying to set up a quick test. I created a single team and a player. I added the single-player.php to the theme directory. I can view the player bio page without problem, but there is no link to it from the roster.

    I copied in several of your example shortcodes, tried using preset formats and a custom format. In all cases, I get no link from the roster to the player’s bio.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mark O’Donnell


    Hi easypc,
    Thanks for writing. Are you seeing any warnings or notices in your /wp-content/debug.log file? How are you viewing the player bio page? Can you send me a link to a sample? Are you using a child theme? Have you reset your permalinks to postname? (Do it again, doesn’t hurt.) If so, did you copy the single-player.php template to the theme’s directory or the child theme’s directory? Are you using the roster table or the roster gallery? If you haven’t tried both, does the one you haven’t tried work?

    Let me know.

    Thanks for getting back to me so quickly.

    I am using a child theme, but it’s as basic as it can be (just a stylesheet) and I did copy the single-player.php to the theme’s directory. I’ve reset the permalinks a couple times (I did get that 404 error, originally, but got past that with the first reset). I’m able to view the player bio page by clicking the “view page” link or inputting the URL directly.

    I wasn’t planning to use a gallery, but I added one to the page per your suggestion for testing. That link does work. I’m using just the most basic shortcode for both, right now, although I will probably customize for the final site.

    I’m using the roster table. Here’s a link:

    And here’s a link to the player bio:

    I appreciate any thoughts you have.

    I had to make some changes while playing around with the plugin. Here’s a new link to a player bio:

    Plugin Author Mark O’Donnell


    Thanks for all the information. It appears that the table is not finding the single-player.php template, and therefore not creating the link. I just took a look at the code (version 3.1.2). The table and gallery appear to use the same logic to find the single-player.php template and create the link. So …

    1. The template should be in the CHILD theme’s main directory. I’d stick it in both main directories for now, just to take that out of the equation.

    2. Try adding a player photo (any image) to one of the player’s, show the player photo column, and see if the link shows on the photo (in both the table and gallery). Again, I don’t see a difference in the logic, but the results might provide a key hint.

    3. Turn on WPDEUG, if it’s not on already, and take a look at your error.log file. Are there any PHP notices or warnings that look related to this issue?

    Let me know.


    P.S. The good news is that I’m working on the next version of Team Rosters and all this logic has been re-written since you will no longer have to move the single-player template.

    It looks like copying the single-player.php to the child theme directory fixed the problem. That’s where I put it originally, but it didn’t fix the 404 error, so I moved it to the theme directory.

    This issue aside, the plugin is working great.

    Thanks for the help.

    Plugin Author Mark O’Donnell



Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No player bio link from roster’ is closed to new replies.