WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] Disable singular item page (7 posts)

  1. aleciri83
    Member
    Posted 11 months ago #

    Hi,
    I would like to know if is it possible to disable the access to the single pages of the achievements created.
    I need to "hide" this pages, but to still use the events.
    Any suggestion?
    Can this compromise any other behaviour?

    Thank you in advance

    http://wordpress.org/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 11 months ago #

    Hmm. Totally disable the single pages, or just not show them in lists, etc?

  3. aleciri83
    Member
    Posted 11 months ago #

    Totally disable, showing a 404.

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 11 months ago #

    I'll give it some thought. There's a bunch of places that link to the individual achievement pages, but that's a secondary problem.

  5. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 11 months ago #

    Here's a code snippet which you can put into your theme's functions.php, or in a file in mu-plugins.

    https://gist.github.com/paulgibbs/6654255

    Hope it helps -- beyond this, you'll need to play around with it yourself if it's not quite right.

  6. aleciri83
    Member
    Posted 11 months ago #

    thank you!

  7. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 11 months ago #

    No problem :)

Reply

You must log in to post.

About this Plugin

About this Topic