-
AuthorPosts
-
January 3, 2014 at 7:58 pm #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
PhilippJanuary 4, 2014 at 11:04 am #205298Hi 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,
PeterJanuary 4, 2014 at 3:35 pm #205329Hi Peter,
if I reset the permalinks to default everything works fine. But actually I would prefer the postname-format. Is there any possability?
Regards,
PhilippJanuary 5, 2014 at 6:59 am #205492Hi!
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!
IsmaelJanuary 5, 2014 at 2:16 pm #205552This reply has been marked as private.January 5, 2014 at 2:44 pm #205554Hey!
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,
PeterJanuary 5, 2014 at 3:01 pm #205560Thanks Peter,
everything seems to work fine, I can live with the little restriction ;)
Regards
Philipp -
AuthorPosts
- The topic ‘Portfolio entries, error 404’ is closed to new replies.