caterhamcomputing
Forum Replies Created
-
Forum: Plugins
In reply to: [CC Child Pages] Different css for each "depth"?Sorry to have taken a while to respond, but I’ve not had been around much over the last couple of months … normal service is now resumed (hopefully)!
Because the widget and list mode use the
wp_list_pagesfunction built into WordPress (see https://codex.ww.wp.xz.cn/Function_Reference/wp_list_pages), it would not easily be possible to make the list work as you describe. (It could be done, but would involve a lot of work in writing and testing a new walker function … there is also the question of how far to take it … what happens if someone specifies a depth of 2,3 or 7!)There is, however, a simple solution via CSS.
For example, you can specify the styling for top-level list items using:
ul.ccchildpages_list li { font-size: 14pt; font-weight: bold; }.. and the styling for sub-items in the list using:
ul.ccchildpages_list li li { font-size: 10pt; font-weight: normal; }… for further depths, you could add more:
ul.ccchildpages_list li li { font-size: 8pt; color: #000066; }I hope that this is of some help.
Forum: Plugins
In reply to: [CC Child Pages] option to limit number of pagesHi.
Thank you for your suggestion … I won’t be including it at present, as I have longer term plans to add features that would provide similar functionality.
I would suggest that a better way of limiting the number of posts displayed would be to use the
ccchildpages_query_argsfilter to amend the arguments sent toWP_Query()– just set theposts_per_pageargument to the number of items you want listed.e.g. add the following to your theme’s funtions.php
add_filter('ccchildpages_query_args', 'limit_child_pages'); function limit_child_pages($args) { $args['posts_per_page'] = 3; return $args; }Forum: Plugins
In reply to: [CC Child Pages] Bug: Sorting by slugForum: Reviews
In reply to: [CC Child Pages] Awesome pluginHi.
Just a quick note to say that I have released a new version of the plugin, which has added support for custom post types.
Of course, this will only work with hierarchical post types due to the nature of the plugin … but might be helpful for your custom post types (I haven’t looked into whether it would work specifically with Woocommerce).
Forum: Plugins
In reply to: [CC Child Pages] Moving Child Page Titles Below Thumbnail PictureYou can now achieve this using WordPress filters … add the following to your theme’s
functions.php:function custom_ccchildpage_inner_template($template) { $template = '<div class="ccchildpage {{page_class}}">{{thumbnail}}<h3{{title_class}}>{{title}}</h3>{{excerpt}}{{more}}</div>'; return $template; } add_filter( 'ccchildpages_inner_template' ,'custom_ccchildpage_inner_template' );This will change the output of the plugin on all pages.
I intend to create full documentation for the available filters soon, and at a later stage will implement ways of accessing some of them via the WordPress dashboard.
I hope that this helps.
Forum: Plugins
In reply to: [CC Child Pages] Child pages from different parent pagesHi.
I have incorporated this request into the latest release, let me know how it works for you.
You can now specify multiple parent pages:
[child_pages id="42,53,76"]Please note that when setting
list="true", only a single parent can be specified … this is because of the way thewp_list_pages()function (part of WordPress) works.Forum: Plugins
In reply to: [CC Child Pages] Custom Post TypeThe new version (1.29) will work with custom post types … let me know if you find any issues.
Forum: Plugins
In reply to: [CC Child Pages] didn't close some query properly (spotted by my support)Hi.
I have checked through the code and think that the latest version should resolve this issue.
If you could let me know whether it fixes your problem or not, I’d be most grateful.
Forum: Plugins
In reply to: [CC Child Pages] theme problem – some query wasn't closed properly.I am marking this topic as resolved as it is a duplicate … see https://ww.wp.xz.cn/support/topic/didnt-close-some-query-properly-spotted-by-my-support?replies=1
Forum: Plugins
In reply to: [CC Child Pages] Bug: Sorting by slugYou need to use the
orderbyparameter to specify what to sort by … theorderparameter can be set to"ASC"or"DESC", depending if you want to sort ascending or descending. (See detailed instructions at https://ww.wp.xz.cn/plugins/cc-child-pages/).Let me know if you still have problems.
Forum: Plugins
In reply to: [CC Child Pages] Hmm some missingHi.
The plugin uses the wp list pages() function (see https://codex.ww.wp.xz.cn/Function_Reference/wp_list_pages) to generate the lists, which does not include the functionality you are requesting.
At present, I have no plans to include this functionality.
Thank you for using CC Child Pages – I hope that you still find it useful.
Forum: Plugins
In reply to: [CC Child Pages] Bug: Sorting by slugHi.
Can you provide a sample page to show this not working?
I have just tested it myself, and it seems to sort by the slug as expected.
If you can also post the shortcode that you are using (to show the parameters), that would be a great help in sorting out your problem.
Thank you for using CC Child Pages
[ Signature moderated ]Forum: Plugins
In reply to: [CC Child Pages] Custom Post TypeNo, the plugin was specifically created for displaying child pages … however, thinking about it – it would be fairly easy to change the query to pick up the post type from the current or specified page.
This would only work for the responsive boxes – the widget and lists would remain Pages only, as they use the wp_list_pages function.
I’ll consider this for future releases.
Forum: Plugins
In reply to: [CC Child Pages] Thumbnail sizeNo, you need to specify an image size that has been set up in WordPress … specific image sizes don’t really lend themselves to being responsive.
You could add some CSS to display all the images within the child page elements at a specific size.
Forum: Plugins
In reply to: [CC Child Pages] Identify Parent Page IDHi. You’d probably need to write some custom javascript to identify all the child pages title elements and to set the height of them to be the same as the tallest one …