Tagged: enfold, frontpage, plugin, redirection, slug
-
AuthorPosts
-
November 23, 2017 at 1:34 pm #880694
Hi Enfold,
I have installed Enfold on https:onlinekursus.dk and that works fine :-)
However, I have also installed a plugin WPAdverts, and out-of-the-box it works fine together with Enfold, but when trying to customize a slug, then I get redirected to the frontpage.I am using a child-theme of Enfold on the website.
I am trying to change (in bold)
onlinekursus.dk/advert/laer-selv-seo/
to
onlinekursus.dk/tilbud/laer-selv-seo/…using this code:
add_action("adverts_post_type", "customize_adverts_post_type"); function customize_adverts_post_type( $args ) { if(!isset($args["rewrite"])) { $args["rewrite"] = array(); } $args["rewrite"]["slug"] = "tilbud"; return $args; }
Using the same code on another test-website having theme Twenty Seventeen 1.4 or Twenty Fifteen 1.9 installed the slug-changing-codes work fine.
Have you any idea what causes the redirection?
Thanks for a wonderful Enfold :-)
November 23, 2017 at 5:51 pm #880815Hey OKEI,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
NikkoNovember 23, 2017 at 6:32 pm #880847This reply has been marked as private.November 24, 2017 at 4:45 am #881008Hi,
Thanks for providing the login, however the ftp access doesn’t work for me. Also I just want to ask if without this code:
add_action("adverts_post_type", "customize_adverts_post_type"); function customize_adverts_post_type( $args ) { if(!isset($args["rewrite"])) { $args["rewrite"] = array(); } $args["rewrite"]["slug"] = "tilbud"; return $args; }
Does it still redirect?
Best regards,
NikkoNovember 24, 2017 at 8:38 am #881080This reply has been marked as private.November 24, 2017 at 12:44 pm #881149Hi,
Still not working on my end. Can you try the solution posted here maybe it can help: https://wordpress.org/support/topic/rewrite-advert-after-last-update/
Best regards,
NikkoNovember 24, 2017 at 3:04 pm #881219You ROCK Nikko :-D
Your posted solution did it !!!
Thanks a lot for wonderful support ;-)
November 24, 2017 at 3:34 pm #881240Hi,
Thanks for your kind words, we appreciate it a lot. Thanks for always using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Enfold redirecting to frontpage’ is closed to new replies.