New Landing How can we help? Themeforest Theme Support Dante Blank pages after updating to 2.66

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #112892
    morruu
    Member
    Post count: 106

    Hi again,

    I have problems with my webpage after the update to 2.66.
    Some of the urls show blank pages. Please take a look at.

    http://www.kamillaruus.dk/
    http://www.kamillaruus.dk/om/ (not working)
    http://www.kamillaruus.dk/galleri/ (not working)
    http://www.kamillaruus.dk/galleri/akrylmalerier/
    http://www.kamillaruus.dk/kunst-blog/ (not working)

    Do you think you can help me?

    Best regards
    Morten

    #112893
    morruu
    Member
    Post count: 106

    I found out it is this rule that makes the problem. How can I get it to work again?

    First use custom rule like
    /galleri/%portfolio-category%/

    and put this code functions.php at end of file

    function brand_permalink($permalink, $post_id, $leavename) {
    //con %brand% catturo il rewrite del Custom Post Type
    if (strpos($permalink, ‘%portfolio-category%’) === FALSE) return $permalink;
    // Get post
    $post = get_post($post_id);
    if (!$post) return $permalink;

    // Get taxonomy terms
    $terms = wp_get_object_terms($post->ID, ‘portfolio-category’);
    if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0]))
    $taxonomy_slug = $terms[0]->slug;
    else $taxonomy_slug = ‘portfolio-category’;

    return str_replace(‘%portfolio-category%’, $taxonomy_slug, $permalink);
    }

    Best regards
    Morten

    #112894
    morruu
    Member
    Post count: 106

    Hi again,

    I have uploaded the functions.php version 2.64 with the code above and now it works, but I don’t know if there is any updates to the functions.php I will be missing by doing this.

    Best regards
    Morten

    #113075
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Yes it seems like a permalink issue, make sure you have correct permalinks in Settings -> Permalinks and you said you are editing the functions.php for some permalinks, so make sure all are good. If you change any .htaccess files for permalinks make sure that is correct too.

    Let us know,

    Thanks,
    laranz.

    #119427
    morruu
    Member
    Post count: 106

    Hi Laranz,

    It seems like it was me who made a fail, so please consider this topic as solved. I forgot to copy the whole code into the functions.php.

    Best regards
    Morten

    #119537
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok no problem

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register