caterhamcomputing
Forum Replies Created
-
Forum: Plugins
In reply to: [CC Child Pages] Show drafts of children and grandchildrenYou are choosing to show ONLY posts that are drafts, is that correct?
Are the children and grandchildren also drafts?
Forum: Plugins
In reply to: [CC Child Pages] Show drafts of children and grandchildrenCan you post the full shortcode that you are using for this … I can then try and recreate the issue.
Thank you.
Forum: Plugins
In reply to: [CC Child Pages] Do we need to choose a specific Parent?… also it goes without saying to make sure that the
Parentoption is set to'Current Page'.Forum: Plugins
In reply to: [CC Child Pages] Displaying page title after thumbnailJust a note … I have changed the code so that either of the above should work after the next release. That should ensure backwards compatibility.
Forum: Plugins
In reply to: [CC Child Pages] Suport for multiple post-types for child pagesGiven how non-standard this whole approach is, I don’t think this is something that I would build into the core … it strikes me that this is something that may be better achieved with non-hierarchical posts and categories (or even custom taxonomies) …
However, the plugin has many hooks and filters – you could try adding something like the following to your theme’s
functions.php:function ccchildpages_show_any_type_of_child($args) { $args['post_type'] = 'any'; return $args; } add_filter( 'ccchildpages_query_args' ,'ccchildpages_show_any_type_of_child' ); add_filter( 'ccchildpages_list_pages_args' ,'ccchildpages_show_any_type_of_child' );… I haven’t had the time to try this out, so I can’t say it will definitely work.
This should change the child
post_typeto be'any'rather than being based on what is passed to the shortcode or the parentpost_type.Let me know if this helps, or at least gets a bit closer to what you want to do.
- This reply was modified 8 years, 3 months ago by caterhamcomputing. Reason: missed out returning the value!
Forum: Plugins
In reply to: [CC Child Pages] Widget not working for custom post typeThe widget has historically only ever worked for pages (as this plugin was originally developed to work with the Page post type) … I will look into adding the option to choose which post types the widget should be shown for in the future.
Forum: Plugins
In reply to: [CC Child Pages] Suport for multiple post-types for child pagesHi.
I am not sure how you can create a post with a parent of a different post type? (Not that I have tried …)
Do you mean that you have various items listed in a custom menu?
I will look into this next week, as I am away at present … I believe it should be possible to implement this without slowing the main query loop unnecessarily.
Forum: Plugins
In reply to: [CC Child Pages] Custom thumbnail not workingHi … the
use_custom_thumbsdoes not accept a link to an image. It needs to be passed the name of a custom field which will hold the details of a custom image … this allows a different image to be used for each page (other than the featured image).You need to set the image to be displayed in the named custom field for the pages that you want it to be displayed on.
The following is taken from https://ww.wp.xz.cn/plugins/cc-child-pages/ :
[child_pages use_custom_thumbs="custom_cc_thumnail"]… will replace the standard thumbnail with one specified in the value of the custom field
custom_cc_thumnail(if it is set). The value of thecustom_cc_thumnailcustom field can either be set to the ID of the image attachment (using the Advanced Custom Fields plugin can make this much easier to use) or to the full URL of the image.Forum: Plugins
In reply to: [CC Child Pages] Displaying page title after thumbnailYou can change the order of the items by adding the following to your theme’s
functions.phpfile:function custom_ccchildpage_inner_template($template) { $template = '<div class="ccchildpage {{page_class}}">{{thumbnail}}<h3{{title_class}}>{{title}}</h3>{{meta}}{{excerpt}}{{more}}</div>'; return $template; } add_filter( 'ccchildpages_inner_template' ,'custom_ccchildpage_inner_template' );… please note that from version 1.37 (which will be released shortly), this will need to changed to:
function custom_ccchildpage_inner_template($template) { $template = '<div class="ccchildpage {{page_class}}">{{thumbnail}}{{header}}{{meta}}{{excerpt}}{{more}}</div>'; return $template; } add_filter( 'ccchildpages_inner_template' ,'custom_ccchildpage_inner_template' );- This reply was modified 8 years, 3 months ago by caterhamcomputing.
Forum: Plugins
In reply to: [CC Child Pages] Force to one column for small devicesSorry not to have answered sooner, but I have not been around for a while.
You would need to write some custom CSS with a media query to change the size of columns on smaller screens.
Add the following to the Custom CSS on the CC Child Pages Options page (Settings->CC Child Pages):
@media screen and (max-width: 480px) { .twocol .ccchildpage, .threecol .ccchildpage, .fourcol .ccchildpage { width: 98%; float: none; } }… change the value for max-width to whatever width you’d like the cut off point to be.
Forum: Plugins
In reply to: [CC Child Pages] Do we need to choose a specific Parent?Simply tick the
Show SiblingPages box to show the siblings of the current page …Forum: Plugins
In reply to: [CC Child Pages] How to remove “Read more…”To hide just the “Read more…” link and still display the excerpt you would need to use:
[child_pages hide_more="true"]Forum: Plugins
In reply to: [CC Child Pages] Not honoring Template selected for child pagesGlad that this helped … the next release will include a
hide_titlesparameter, which will remove the titles completely if set totrue.I am currently in the final stages of testing, so hopefully it should be out in the next few days.
Forum: Plugins
In reply to: [CC Child Pages] Not honoring Template selected for child pagesHi.
The plugin does not get any styling from the theme used on the site (other than some simple inheritance).
There is not currently a parameter to hide the page titles as the original purpose of this plugin was to display the page titles, and no-one has ever asked to hide them. I will put this idea on the list for future development.
In the meantime, the following CSS will hide the titles from being viewed:
.ccchildpage h3 { display:none; }You can either add this to your theme/child theme or can enter it in the Custom CSS box found in the dashboard at Settings -> CC Child Pages
Please let me know if this fixes the problem for you.
P.S. I am unable to look at your site as it is not on-line at present – http://only%20have%20locally%20right%20now/
- This reply was modified 8 years, 4 months ago by caterhamcomputing.