• Resolved deboni

    (@deboni)


    Hi

    When I have Yoast SEO activated, the sub categories show a wrong page title. The page title becomes the first event in the sub category instead of the sub category name.

    Website with the error

    I have searched on this forum and also tried all possible adjustments in the Event Manager Pro 2.6.4 as well as the setting in the Yoast SEO plugin 11.5

    I’m using WP version 5.2.2

    • This topic was modified 4 years, 10 months ago by deboni.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    By Default EM uses it’s own Template file when you’re on the Events Categories or Tags pages. If you want to be able to use Yoast SEO to properly work on Category Pages. You would need to create a template file on your theme, This way WordPress would use that template file and you would be able to use SEO plugins properly.

    What you need to do is just create a file on your theme called “taxonomy-event-tags.php” Then for the file contents, You could copy what your theme uses for taxonomy templates. By default WordPress uses the “archive.php” file to display the category or taxonomy pages. Your theme might have a custom file to display those so you could just copy the content of that file to the “taxonomy-event-tags.php” that you created.

    Here is a link for Taxonomy Template Hierarchy that might help you: https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/

    Thread Starter deboni

    (@deboni)

    Hi timrv

    Tanks for your reply.

    I can not get this to work as described. If i use “taxonomy-event-tags.php”, nothing changes at all. If I use i.e. “taxonomy-event-categories.php”, the entire content changes of that page.

    This seems clearly a template issue as it works fine with twenty nineteen.

    I contacted the developers of the theme for help.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try something like this? https://codex.wordpress.org/Tag_Templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sub category page shows wrong page title when Yoast SEO is active’ is closed to new replies.