Forum Replies Created

Viewing 15 replies - 91 through 105 (of 372 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    I have been trying to reproduce this problem on the latest version of WordPress using both the standard editor and the Site Builder page builder plugin … and I am not experiencing any delays in editing.

    The “heavy lifting” in the plugin should only take place on the front end of the site, so it is hard to see how it could be slowing down the editing.

    It may be some kind of interaction with another plugin, so if you can let me know the other plugins installed on the site I will do what I can to investigate.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Hi.

    Sorry to have taken a while to come back to you … I have been away for a while.

    I will be taking a look at this in the next couple of days.

    Can you tell me: is the problem apparent when using the standard WordPress editor, or when using the SiteOrigin page builder (as I notice this is a recommended plugin for your theme).

    Also, if you can let me know what version of WordPress you are running it may help me to reproduce the issue.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    The plugin does not obtain or store any user data.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Thank you. Glad that it is useful to you 🙂

    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 …

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    As I have not heard back, I am assuming that the problem is resolved … If you are still having problems please let me know.

    I have added creating a filter hook for the page excerpt within the plugin to the list of enhancements for future releases as it may be useful in some circumstances.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    You are welcome … glad that it’s all working for you now 🙂

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    All of the options for the shortcode are detailed at https://ww.wp.xz.cn/plugins/cc-child-pages/

    If you order the pages within the dashboard, the plugin will show them in that order (unless you specify a different order).

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Do your pages show in the order you would like them to when you look at them in the WordPress Dashboard?

    If so, make sure that the orderby parameter is not present in your shortcode or set orderby="menu_order".

    If they do not show up in the order you would like them to in the WordPress Dashboard I would suggest using the plugin mentioned in my previous comment to order them – that is what allows you to drag and drop the pages into the correct order (assuming they are actual pages or custom fields that use a hierarchy).

    At present, this plugin does not allow sorting by tags or other meta fields … you can always use the exclude parameter to exclude certain results …

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    … just another thought (and I haven’t tried it out), but if you are ordering by the page name then padding the short page numbers with spaces may be a quick workaround. (e.g. instead of “Page[space]1”, make it “Page[space][space]1”)

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Did my post give you the information you needed, or do you need further assistance?

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    The best solution would probably be to order the pages within the WordPress dashboard to be in the order that you want them to appear and to sort by menu_order.

    I personally use the Simple Page Ordering plugin to speed this up, as you can just drag and drop the pages to put them in order – see https://en-gb.ww.wp.xz.cn/plugins/simple-page-ordering/.

    Doing things this way will also mean that any other themes or plugins that come up with a list of pages should also show them in the same order.

    In theory, it would be possible to order the pages by looking at the value a custom field … at the moment, you’d need to use the ccchildpages_widget_pages_args, ccchildpages_list_pages_args and/or ccchildpages_query_args filters within the plugin to add the relevant values to orderby and meta_key … I may add these ordering options to a future version of the plugin, but I think that most of the time actually ordering the pages would be the better option.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Hi.

    There is not currently a filter on the page excerpt within the plugin.

    An alternative approach would be to filter the page content using the the_contentfilter (see https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/the_content) rather than trying to replace the the_content function within WordPress – that way all functions that get the page content (the_content, get_the_content, …) will return consistent results.

    cc_child_pages uses the get_the_contentfunction provided by WordPress.

    I hope this is of some help … let me know if you need further assistance. (Details of why you replaced the the_content function and what you are doing with it may help in coming up with alternative approaches.)

    • This reply was modified 8 years, 1 month ago by caterhamcomputing. Reason: clarifying code within the post
    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    This is not something that this shortcode is deisgned to do … it will show child pages of either the current page or a specified page that meet certain criteria. If the child of the selected page doesn’t meet the criteria, it will not be included and therefore any of it’s children will not be included.

    You would need to either create some kind of custom walker for wp_list_pages function (https://developer.ww.wp.xz.cn/reference/functions/wp_list_pages/) used by the plugin or write some custom code using WP_Query (https://codex.ww.wp.xz.cn/Class_Reference/WP_Query)

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Looking at your page and the lists of published and draft pages next to where the shortcode is, I think you need to change the value of post_status to:

    post_status="publish,draft" or something similar (see the documentation for possible values).

    Let me know if this solves your problem.

Viewing 15 replies - 91 through 105 (of 372 total)