Magento 2 - Wordpress Integration url issue












3















I am using a magento 2.1.8 site.
I have installed wordpress in a subdirectory of my root directory.
I have integrated the wordpress and magento site by using fishpig wordpress extension.
All other things are working fine. Now I got all my wordpress post in this url www.example.com/blog



The issue is I have assigned few categories to a post, For example,blog,category1,category2,category3 etc.



When I take the post in browser, it shows the url as www.example.com/blog/blog/posturl/.



I want the post url as www.example.com/blog/category2/posturl/.



How can I do it? When ?I tried the permalinks extension in wordpress,but still the issue exist.










share|improve this question
















bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    3















    I am using a magento 2.1.8 site.
    I have installed wordpress in a subdirectory of my root directory.
    I have integrated the wordpress and magento site by using fishpig wordpress extension.
    All other things are working fine. Now I got all my wordpress post in this url www.example.com/blog



    The issue is I have assigned few categories to a post, For example,blog,category1,category2,category3 etc.



    When I take the post in browser, it shows the url as www.example.com/blog/blog/posturl/.



    I want the post url as www.example.com/blog/category2/posturl/.



    How can I do it? When ?I tried the permalinks extension in wordpress,but still the issue exist.










    share|improve this question
















    bumped to the homepage by Community 1 min ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      3












      3








      3


      1






      I am using a magento 2.1.8 site.
      I have installed wordpress in a subdirectory of my root directory.
      I have integrated the wordpress and magento site by using fishpig wordpress extension.
      All other things are working fine. Now I got all my wordpress post in this url www.example.com/blog



      The issue is I have assigned few categories to a post, For example,blog,category1,category2,category3 etc.



      When I take the post in browser, it shows the url as www.example.com/blog/blog/posturl/.



      I want the post url as www.example.com/blog/category2/posturl/.



      How can I do it? When ?I tried the permalinks extension in wordpress,but still the issue exist.










      share|improve this question
















      I am using a magento 2.1.8 site.
      I have installed wordpress in a subdirectory of my root directory.
      I have integrated the wordpress and magento site by using fishpig wordpress extension.
      All other things are working fine. Now I got all my wordpress post in this url www.example.com/blog



      The issue is I have assigned few categories to a post, For example,blog,category1,category2,category3 etc.



      When I take the post in browser, it shows the url as www.example.com/blog/blog/posturl/.



      I want the post url as www.example.com/blog/category2/posturl/.



      How can I do it? When ?I tried the permalinks extension in wordpress,but still the issue exist.







      magento2 category url third-party-module wordpress






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 '18 at 2:00









      sv3n

      9,87062355




      9,87062355










      asked Jan 17 '18 at 5:54









      Jancy AbrahamJancy Abraham

      1,08611638




      1,08611638





      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Try settings same as following example:



          1. Set your WordPress setup folder name "wp".

          2. M2 Admin Menu > WordPress > Path = wp

          3. Database: magento2_wp > Table: wp_options

          option_id = 1
          option_name = siteurl
          option_value = http://www.example.com/wp //Folder name of your WordPress installation.
          autoupload = yes

          option_id = 2
          option_name = home
          option_value = http://www.example.com/blog //Frontend URL
          autoupload = yes





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "479"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f209726%2fmagento-2-wordpress-integration-url-issue%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Try settings same as following example:



            1. Set your WordPress setup folder name "wp".

            2. M2 Admin Menu > WordPress > Path = wp

            3. Database: magento2_wp > Table: wp_options

            option_id = 1
            option_name = siteurl
            option_value = http://www.example.com/wp //Folder name of your WordPress installation.
            autoupload = yes

            option_id = 2
            option_name = home
            option_value = http://www.example.com/blog //Frontend URL
            autoupload = yes





            share|improve this answer




























              0














              Try settings same as following example:



              1. Set your WordPress setup folder name "wp".

              2. M2 Admin Menu > WordPress > Path = wp

              3. Database: magento2_wp > Table: wp_options

              option_id = 1
              option_name = siteurl
              option_value = http://www.example.com/wp //Folder name of your WordPress installation.
              autoupload = yes

              option_id = 2
              option_name = home
              option_value = http://www.example.com/blog //Frontend URL
              autoupload = yes





              share|improve this answer


























                0












                0








                0







                Try settings same as following example:



                1. Set your WordPress setup folder name "wp".

                2. M2 Admin Menu > WordPress > Path = wp

                3. Database: magento2_wp > Table: wp_options

                option_id = 1
                option_name = siteurl
                option_value = http://www.example.com/wp //Folder name of your WordPress installation.
                autoupload = yes

                option_id = 2
                option_name = home
                option_value = http://www.example.com/blog //Frontend URL
                autoupload = yes





                share|improve this answer













                Try settings same as following example:



                1. Set your WordPress setup folder name "wp".

                2. M2 Admin Menu > WordPress > Path = wp

                3. Database: magento2_wp > Table: wp_options

                option_id = 1
                option_name = siteurl
                option_value = http://www.example.com/wp //Folder name of your WordPress installation.
                autoupload = yes

                option_id = 2
                option_name = home
                option_value = http://www.example.com/blog //Frontend URL
                autoupload = yes






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 17 '18 at 11:24









                Pratik OzaPratik Oza

                2,071411




                2,071411






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f209726%2fmagento-2-wordpress-integration-url-issue%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Alcázar de San Juan

                    Griza ansero

                    Heinkel He 51