• Hi,

    I have the game schedule table displayed with the shortcode.

    There’s a problem with the game time that’s linked to the game page. The link in the table doesn’t include /lm-game/ and returns a 404 error.

    I noticed on your examples page it’s the same, but theres a redirect to /lm-game/ that happens.

    I tried removing /lm-game/ with a rewrite rule in .htaccess just like removing /category/ and it didn’t work for some reason.

    Thanks in advance, Sean

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Oscar Liam

    (@oscarliam)

    Hi Sean,

    It seems like the issue is related to how your permalink structure is set up for your sports game schedule. The /lm-game/ prefix is likely being generated by your plugin or custom post type settings. Here are a few steps to troubleshoot and resolve this issue:

    Check Permalink Settings:

    • Go to your WordPress dashboard, navigate to Settings > Permalinks, and resave the settings. This often flushes the rewrite rules and can resolve permalink-related issues.

    Rewrite Rules:

    • If you’re modifying the .htaccess file, ensure the rewrite rule explicitly accounts for the /lm-game/ prefix. Double-check the syntax and confirm there are no conflicts with existing rules.

    Redirect Configuration:

    • If the redirect works on the examples page, inspect the server configuration or plugin handling those sports game links. A plugin like Redirection can help manage and troubleshoot these links.

    Plugin Documentation:

    • Refer to the plugin’s documentation for any custom settings related to URL structures or slugs. You might need to adjust the slug for the custom post type responsible for the /lm-game/ links.

    Custom Functions:

    • If needed, you can use the add_rewrite_rule() function in your theme’s functions.php file to map the desired URL structure directly.

    Feel free to share more details or the specific plugin you’re using for further assistance!

    Best regards,
    Oscar Liam

    Thread Starter Sean Thompson

    (@seanthompson)

    Simple fix…

    In mstw-lm-utility-functions.php I changed line 1933 from…

    $href = get_site_url( ) . "/" . $game->post_name;

    to…

    $href = get_site_url( ) . "/lm-game/" . $game->post_name;

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.