piccart
Forum Replies Created
-
just wanted to confirm that deleting that part within the code has indeed fixed the problem.
thanks!
Hello and thanks for your help!
First option is not good because I actually want to link to the post, but the link is not working..
Option 2 would probably fix the problem (not tested yet) but it require to edit the plugin file… will you push the same edit to the next version of the plugin as well?
I can do the edit as a temporary solution, but I think this should be fixed in the master too…
Thanks!
Hello!
I am sorry but the site is not live at the moment.. can’t you reproduxe the error in another build?
I am pretty sure that in the past the id wasn’t appended to the text of the title in the dropdown search results.. is that something newly introduced?Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] page excerpt does not showhello!
I am so sorry I don’t know why but I missed the notification for this post.. ??Pages don’t have the excerpt by default, hence it means that some custom code (from a plugin, theme, etc..) is adding that feature to your pages.
if it’s added as an actual wp post excerpt, then it should display with my plugin, because the function is the same. But if it’s added in other ways (i.e. as a custom fields) then it won’t be recognised as excerpt and my plugin will pull nothing..
could you send me a screenshot of the place where you input the excerpt for pages in the admin?
edit: actually, I just had a better look and my plugin builds the excerpt starting from the_content (that’s to allow any length as you set in the options).
To avoid breaking code in half when trimming the excerpt length from the content, the plugin strips all shortcodes and other html too before trimming.
What do you have as Page content? is it some sort of visual page builder?- This reply was modified 6 years, 8 months ago by piccart.
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] How to show page by page title with filterok great!
have a wonderful year!
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] How to show page by page title with filterHello!
filtering by title is not really supported by wordpress itself.. You can set a keyword and pass a “search” filter as a parameter, but that won’t actually achieve what you’re looking for. it will pull out something like a search result, not a precise title filtering.
and it is also a very heavy task to add to the query, hence it’s usually not recommended for this kind of things.
But I am thinking, why don’t you just add those pages to a custom taxonomy term, like a category, and then use that as filter within my widget?
You can easily create a new taxonomy (like “page_category”) using a plugin like CPT UI:
https://en-gb.www.ads-software.com/plugins/custom-post-type-ui/and then you assign those pages to the same term and that’s it.
will something like this work for you?
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] Problem deactivating pluginthat’s very weird…
I’ve tried to deactivate and remove, then I went to “install plugins”, searched for my plugin, clicked “install”, then “activate” and it worked normally…what exactly was happening to you?
and when did this happen? Have you already deleted your custom template when you have removed/reactivated the plugin?
have you removed the plugin from the admin panel, or have you manually deleted the files from your website?
does it happen if you do it again? I have the feeling that might have been just a temporary fail of the ajax request which wp sends when you click these buttons.
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] Problem deactivating pluginok great!
I’m restructuring the plugin and one of the things I am focusing on is indeed the template structure and the procedure to customise them.
I want to allow for many quick customisations without actually having to create a custom file, and I will break the template into smaller sub-parts, so that if someone really needs to change something within that code, they can create only a custom-part file and this will reduce the risks for errors, and also they will have to update their template only if I modify that very template-part, which will happen less often.
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] Problem deactivating pluginHello!
was the warning telling that you must update (red border and you cannot close it), or was it only the yellow soft warning telling that there is a new version and it’s better to update, but you can close the warning and carry on?
I’ve done some tests and couldn’t replicate the problem. I am nearly sure that it was something related to your custom theme file but I’m not sure what.. probably something going wrong due to the fact that you started using the plugin since very early times and your first custom template file was made from a very old version.
Anyways, I’ve now tweaked a bit the plugin so that you won’t need to customise the file at all. ??
Update the plugin and add this to your theme’s functions.php:
/** * Add the Posts Count to the text/title for the dropdown * of Pages By Custom Taxonomy widget * * @hooked to 'pbytax_dropdown_title' * * @param string $dropdown_text text string as per widget options * @param array $instance full list of current widget options * @param array $data ( 'count' => count($pbytax_posts) ) * * @return string */ function bwd_add_count_to_pbt_dropdown_title( $dropdown_text, $instance, $data ) { if ( ! isset($data['count']) ){ return $dropdown_text; } $dropdown_text .= ' - '. $data['count'] .' - titels ..'; return $dropdown_text; } add_filter( 'pbytax_dropdown_title', 'bwd_add_count_to_pbt_dropdown_title', 11, 3 );
Then make a copy of your custom template just to be safe, and delete it from the website.
at that point the plugin will pick the default template file, which now contains a filter-hook. And the above function will use that filter to add the counter (and the “titels” ) to the dropdown text.
give it a go and let me know if you need help with it.
cheers!
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] Problem deactivating pluginHello Willem!
thanks for reporting this problem, I will investigate!
Just to better understand the situation, you have deactivated the plugin and then when you tried to re-activate you couldn’t see it in the list of plugins? Or rather it was there but when you clicked to activate it won’t activate? or it activate and the widgets were there in the admin panel but they didn’t display in frontend?
and which notice have you got regarding the template? was it just a warning (suggested to update), or was it an error (you must update the template)?
I think it could be some sort of conflict with cookies or options saved from old versions of the plugin, or the custom template that comes from an old version and it’s not fully compatible. Maybe try to re-make your custom template starting from a copy of the latest template file, and adding back your edits.
by the way, I’ve added a few more options and other functionality in the meantime, so maybe you don’t actually need the custom template anymore. Remind me which are the customisations that you have in your template file and I’ll see if can be achieved without it, and eventually use a small function to put in your theme’s functions.php instead. ??
Merry Christmas!
ah!
maybe you had a different account then because I didn’t recognize you..
anyway, thanks! ??ok perfect!
if you have a minute you could rate the plugin and it would be really appreciated. ??
many thanks!cheers!
Hello!
the latest version of the plugin (1.4.8) allows to select a specific Thumb Size to be used for the image. ??
The selector pulls the available sizes directly from your theme/site, then you can set a max-width which will resize the image but will keep the proportion of the specified thumb-size.
If you don’t have a perfect thumb_size for a small image 16/9, but the original uploaded image is 16/9, then the “medium” and “large” size would keep the original proportions.
cheers!
Forum: Plugins
In reply to: [WP LIST PAGES BY CUSTOM TAXONOMY] Order by Title not working as expectedHello!
I know we’ve already found a bespoke solution for your needs, but I wanted to let you know that the latest version of the plugin now includes a specific option to Order By “page order” if you ever need it for another widget/website.
cheers!
Hello,
can you link a page of your site where I can see the widget in action?
in any case this it’s not related to my plugin, but rather to your wordpress setup and theme.
If your thumbnail are set to be square, with my plugin you can change the width of image but the height will be calculated to keep proportions, therefore if your image is square it will still be square.but if you have another thumb-size registered in your theme which is 16/9, then we could tell my plugin to use that size instead of the “thumbnail” size. It doesn’t matter if is bigger because then you can set the max width and it will be reduced (but in that case will maintain the 16/9 proportions).
do you have any thumb-size registered which is 16/9?
- This reply was modified 6 years, 11 months ago by piccart.