Embed pages in a wordpress page

  • Unknown's avatar

    I want to create a page that displays a list of embeded wordpress pages that are selected using a MySQL query.

    So say I have a list of pages that has a page for each product. Say products-1 product-2 and so on.

    SELECT post_title
    FROM VUh_posts
    WHERE 1
    and post_status = ‘publish’
    and post_type = ‘page’
    and post_content like ‘% Content search string%’
    and post_title like ‘Page title prefix%’
    order by post_title ASC

    I can use this MySQL query to return the list of pages based on the page post_title and the post_content fields in the _posts table in the database.

    I want to embed that list of pages into another page so that each of the pages in the MySLQ list are displayed on the page.

    So I will end up with a products page with the list of all the product pages on the MySQL list are displayed.

    Thanks

  • Hello there,

    Many thanks for reaching out.

    Are you able to confirm the URL of the website that you need assistance with please?

  • Unknown's avatar
    andyswprdpress · Member ·

    Hi

    My website url is http://www.flofreedesigns.co.uk

    Thanks

    Andy

  • Hi there,

    I checked your site and your domain is hosted on Bluehost the site is using the open-source WordPress.org software, so you’ll need to seek help at these forums:

    https://wordpress.org/support/forums/

    These forums provide support for WordPress.com-hosted sites. Since we do not have access to self-hosted WordPress.org sites, we are unable to provide any direct assistance to your issue. I would also reach out Bluehost for help.

    If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

    Thanks!

  • The topic ‘Embed pages in a wordpress page’ is closed to new replies.