Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 :-)

    #880815

    Hey OKEI,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #880847
    This reply has been marked as private.
    #881008

    Hi,

    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,
    Nikko

    #881080
    This reply has been marked as private.
    #881149

    Hi,

    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,
    Nikko

    #881219

    You ROCK Nikko :-D

    Your posted solution did it !!!

    Thanks a lot for wonderful support ;-)

    #881240

    Hi,

    Thanks for your kind words, we appreciate it a lot. Thanks for always using Enfold :)

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Enfold redirecting to frontpage’ is closed to new replies.