• Resolved gamewagon

    (@gamewagon)


    When displaying achievements for current user the destination URL is a page not found? What should this link to? or can the URL be removed?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @gamewagon

    Sometimes when you add a new achievement type WordPress does not detect it correctly in the WordPress URL system

    To solve this just access to your admin area and navigate to Settings -> Permalinks and click on the save button

    It will refresh all urls registered and fix the not found errors

    Best regards

    Thread Starter gamewagon

    (@gamewagon)

    Perfect that worked a treat. Thanks. It does however lead to a new issue. I’m using the Enfold theme which uses the Avia Layout Builder. When I edit the Achievment I do not have the options to control sidebars, headers and footers e.t.c.

    I added this code to add the Avia options to LearnDash.

    add_filter(‘avf_builder_boxes’, ‘avia_register_meta_boxes’, 10, 1); //Add meta boxes to custom post types
    function avia_register_meta_boxes($boxes)
    {
    if(!empty($boxes))
    {
    foreach($boxes as $key => $box)
    {
    $boxes[$key][‘page’][] = ‘sfwd-courses’;
    $boxes[$key][‘page’][] = ‘sfwd-lessons’;
    $boxes[$key][‘page’][] = ‘sfwd-topic’;
    $boxes[$key][‘page’][] = ‘sfwd-quiz’;
    }
    }
    return $boxes;
    }

    Can I do something similar for GamiPress custom post types?

    Best JOhn

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @gamewagon

    There is the gamipress_get_achievement_types_slugs() that will return an array with all registered achievement types slugs

    For ranks you will need to use the function gamipress_get_rank_types_slugs()

    Best regards

    Thread Starter gamewagon

    (@gamewagon)

    It is OK I have fixed this now thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Achievement URL is page not found?’ is closed to new replies.