Achievements for WordPress
[resolved] Achievement archive page (4 posts)

  1. Tecca
    Posted 3 years ago #

    Hey there,

    First of all, I'd like to say thank you for this great plugin! I've been playing around with it for the last couple of days and I'm loving it.

    Now that that's out of the way: how would I go about changing which page template the achievement archive uses? I noticed that it uses page.php, so I assumed that it followed WordPress' hierarchy.

    With that in mind, I've tried:

    1) to make a page with slug named "achievements"
    2) to create page-achievements.php

    Neither of the above worked, however.

    Is there any way I can get the http://example.com/achievements page to pull another template?


  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    Ooh, close! I'm sorry for not writing documentation for this stuff. :)

    There's no need to make a page called "achievements" (I'd recommend against it; make sure if you do remove it, that it's permanently deleted, as I think it still affects the plugin if it's trashed).

    Take a look at https://github.com/paulgibbs/achievements/blob/master/includes/core/template-loader.php#L138

    ^ That is the hierarchy of templates that Achievements will try to use instead of page.php. Let me know if any problems using these.

  3. Tecca
    Posted 3 years ago #

    Ah, awesome! Thank you -- it works perfectly when following the hierarchy.

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Achievements for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic