Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #205116

    Hi,

    after the last Enfold update I got a lot of error 404 issues. I’m using WPML as well and followed the instructions on other topics. I added the following code to my functions.php:

    ———
    flush_rewrite_rules( false );

    add_action(‘init’,’deactivate_avia_flush’, 10);
    function deactivate_avia_flush(){
    remove_action(‘wp_loaded’, ‘avia_flush_rewrites’);
    }
    ———

    That solved at least most of the problems. But with portfolio entries I still get the error 404.
    Have a look, on this page I display a portfolio grid:
    http://berlinguitartrio.de/biographien/

    Regards
    Philipp

    #205298

    Hi p_niedrich!

    Another user reported a similar issue and I posted a solution here: https://kriesi.at/support/topic/create-portafolio-entry-and-404-error/#post-205295

    Install the WPML string translation extension and go to the option page: http://berlinguitartrio.de/wp-admin/admin.php?page=wpml-translation-management%2Fmenu%2Fmain.php&sm=mcsetup&admin_bar=1

    You’ll then see some text fields which help you to translate the portfolio slug ( http://www.clipular.com/c/5427218738053120.png?k=-y-mKIbXukjXaOL7CJjwBrDPQLE ). You must also configure the default slug on the “Settings > Permalinks” page. Afterwards save all settings (WPML and permalink settings) and the portfolio items should work.

    Regards,
    Peter

    #205329

    Hi Peter,

    if I reset the permalinks to default everything works fine. But actually I would prefer the postname-format. Is there any possability?

    Regards,
    Philipp

    #205492

    Hi!

    Did you install the WPML string translation extension? You don’t need to switch the permalink settings to default. Please post the login details here as a private reply.

    Cheers!
    Ismael

    #205552
    This reply has been marked as private.
    #205554

    Hey!

    I couldn’t get the portfolio slugs to work on your server (with or without WPML). It seems like your server won’t accept any new rewrite rules and I see no way to register the portfolio post type slug. I deactivated the rewrite rules for portfolio items now – at least you can use them without 404 errors. The disadvantage is that you won’t be able to use portfolio entries with “pretty permalinks”. I added following code to the child theme functions.php

    
    add_filter('avf_portfolio_cpt_args','avia_deactivate_portfolio_slug_rewrite', 10, 1);
    function avia_deactivate_portfolio_slug_rewrite($args)
    {
      $args['rewrite'] = false;
      return $args;
    }
    

    Best regards,
    Peter

    #205560

    Thanks Peter,

    everything seems to work fine, I can live with the little restriction ;)

    Regards
    Philipp

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio entries, error 404’ is closed to new replies.