• Hi,
    thank you for the plugin, it is very nice. I’ve a problem in displaying children in pages post type with shortcode in page content.

    When I use the default shortcode [child_pages] in pages it returns the blog posts instead of page children.

    To display the page children I’ve to specify the ID [child_pages id=”1468″].
    How can I solve the problem?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Strange … there has never been a problem like this reported before.

    I suspect that the problem may be due to another plugin, theme or piece of custom code that it altering the calls to WP_Query

    Can you give me a little more to work on:

    • The Page URL
    • A list of plugins used
    • Details of the theme in use
    • Any custom code added to the functions.php file of the theme…
    • The version of WordPress being used …

    The default shortcode explicitly gets the ID of the current page (using get_the_ID()) and will look for any children of that page/post … so it is very difficult to see how it could possibly return anything but the correct children …

    Thread Starter nabladue

    (@nabladue)

    Hi, thank you for your answer.

    Plugins:

    Akismet Anti-Spam
    All In One SEO Pack
    Automatically Paginate Posts
    Bulk Delete
    Coming Soon Page & Maintenance Mode by SeedProd
    Cookie Notice
    Featured Image Generator
    List Categories posts
    Importatore WordPress
    MailChimp
    MyThemeShop Theme/Plugin Updater
    Open Graph for Facebook, Google+ and Twitter Card Tags
    UpdraftPlus – Backup/Restore
    WordPress Exporter
    WP-Optimize

    Theme: Schema

    functions.php: not modified

    WordPress 4.9.5

    It is a site under development, I can send you login and password in private if you want.

    Thank You

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Hi.

    Sorry not to have got back to you previously … I have been away for a while.

    Can you send me the URL for the page which has the problem? That would be helpful for me to initially have a look …

    If you want me to log in to your site and see if I can spot the issue, please contact me via the contact form at https://caterhamcomputing.net/contact-us/ … please note that I have limited time this week and will be back to normal working hours next week.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not displaying current page childs in pages’ is closed to new replies.