• What I need is a bit complicated. It’s for an e-commerce site. I will have hundreds of pages (one for every country on earth) which I must link to from one place. I need to do the following:

    1. Create a user-friendly way for visitors select a country. Ideally, this would be an autocompleting search form with a dropdown option. (I really like Select2 for Bootstrap, for example.) Alternately, visitors could select a region, which would populate a separate dropdown list with countries in that region. Either way, the selected country will link to a country page.

    2. Create those hundreds of country pages without typing out each and every one. They will all share pre-written information (e.g. “we ship here”, “sales tax applies”, “COD available”, etc.). So ideally I would just generate these pages why checking off which attributes belong to which countries.

    I am very new to WP so please forgive me if these are naive questions. Any help much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you change your mind about something after you have created all those pages, well it doesn’t bear thinking about.

    So I would have just one page which takes the country code as a query string parameter from the drop down. Next, set up a mySql table with the various country-specific parameters in it. The table can be created in Excel and uploaded to mySql. The page would have a shortcode linking to a function which queries the table for the country specifics and then generates the page dynamically. This is a development project and PHP and mySql skills would be needed or you may need to hire someone:
    https://jobs.wordpress.net/

    Thread Starter friendofdog

    (@friendofdog)

    Many thanks for the advice. I had a feeling it might come down to hiring someone, but we’ll see how this pans out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Generating and linking to 100 pages’ is closed to new replies.