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

  • Resolved easypc

    (@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.

    https://wordpress.org/plugins/team-rosters/

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

    (@markodonnell)

    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.
    -Mark

    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: http://easypc-store.com/wordpress/team-1-page/

    And here’s a link to the player bio: http://easypc-store.com/wordpress/players/player-1/

    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:
    http://easypc-store.com/wordpress/players/player-1/

    Plugin Author Mark O'Donnell

    (@markodonnell)

    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.

    -Mark

    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.
    -M

    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

    (@markodonnell)

    Cool.

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