• Resolved jacksonsky

    (@jacksonsky)


    This plugin is great, however one of my parent pages has children pages that include dynamic content like recent blog posts, YouTube videos, podcasts, etc.

    Do you have a suggestion for this parent page that has these types of child pages? I just wanted to make sure I wasn’t overlooking an option before I completely scrap the plugin on this page and try to build something similar (custom) that pulls in this type of content.

    Thank you!

    https://www.ads-software.com/plugins/cc-child-pages/

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

    (@caterhamcomputing)

    Hi

    Can you post a link to the page using the Child Pages shortcode so that I can see what is going on…

    The shortcode should pick up any dynamic content that is produced by other shortcodes, but will remove any formatting and truncate the output.

    The best option (unless you especially need the dynamic content displayed) would probably be to write a custom description in the Excerpt box which is added to Pages by the plugin (the same Excerpt box that WordPress uses for posts). This would probably be the most reliable approach, as dynamic content may well be quite long …

    The plugin also plays nicely with the Video Thumbnails plugin, which might also help.

    Thread Starter jacksonsky

    (@jacksonsky)

    Thanks for your quick and helpful reply. I can’t share the link because it’s for a site that is in progress (and the client doesn’t want links to it publicly posted yet).

    The dynamic content is displayed using WordPress hooks and not shortcodes, so that is possibly the issue.

    I’ll think I’ll create a custom solution that pulls in the dynamic content on the page using hooks and combine that with your plugin since it works so nicely on the other pages/sections.

    Thank you!

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    I will be putting some finishing touches to the next release of the plugin very shortly … would it be helpful to add some filters that you could use to add the custom content?

    The new version will also include a simple templating system to allow the output to be completely changed. This is based entirely around filters, so that may be of some help anyway … eventually I will build a front end to allow multiple templates to be created and then selected in the shortcode. (That may or may not be part of the next release …)

    Thread Starter jacksonsky

    (@jacksonsky)

    Thanks for the consideration. I’ve been chugging away today on it and have got it pretty much worked out. Basically what I did was just create a template page and for the dynamic areas, I added the hooks calling to them from the template (and styled them the exact same way as the child pages in the plugin) and then put your plugin below (and hid the pages that I pulled outside of it).

    I was lucky because they were the top three child pages, so this worked fine. However if they were pages #3 #7 and #9, things would get a little more messy. Maybe then it would be nice if you had a filter to add custom content (HTML or PHP).

    Does that make sense? Or help answer your question?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Pages that include blog posts, videos, etc.’ is closed to new replies.