Doug
Forum Replies Created
-
Forum: Plugins
In reply to: [P3 (Plugin Performance Profiler)] Only sees itself.@santifri i think it works for you because your host uses an old version of PHP.
Forum: Plugins
In reply to: [Contextual Related Posts] Thumbnail size settings reset after a while.I’ll try thank you!
Forum: Fixing WordPress
In reply to: Why can't i choose more than 2 columns on dashboard at 1920×1080?Oh i didn’t know this. I thought it applied to the editor as well.
Well then, thanks for the info i hope in the future that unused space can be used for the right column or at least allow us to make it wider, eliminating the vertical scrolling, specially when we have custom tags and widgets there.Thanks!
Forum: Plugins
In reply to: [Imsanity] Incompatibility with wordpress importerI disabled to import then enabled again after it was done.
Forum: Plugins
In reply to: [P3 (Plugin Performance Profiler)] Only sees itself.Uninstalled it. Looks pretty dead to me.
The cache for that particular page where the comment was posted right? not all caches?
I found a way to achieve this, i hope you don’t mind posting it here.
What it does is exclude archives index from cache so people can see the latest posts while still caching single posts. This is essential for any site using Custom post types.
On archive.php add:
<?php /* exclude CPT archives index from cache */ if ( is_post_type_archive( array ('cpt1', 'cpt2', 'cpt3') )) { echo '<!--[wpfcNOT]-->'; } ?>Where cpt1, cpt2, and cpt3 are your own custom post types.
thanks.
Hmm so sad.
I also tried to set exclude URI is equal to site.com/type1 it had no effect.
I think that is not right…Hello there, so, what do you reckon? Seems alright?
Sure; http://pastebin.com/r4zxXBQ9
The changes are:
1) the definition of “$count” was moved to line 18 (before the output begins).
2) An if statement was added to line 19.That’s all.
I’ve modified the code to exclude terms with 0. I’m not a coder so i don’t know if this is bad for performance or simply wrong, i only know it works.
Please have a look:I modified the output file: /wp-content/plugins/beautiful-taxonomy-filters/public/class-beautiful-taxonomy-filters-walker.php
Basically what i did was move the $count variable that holds the term count before the output starts and after that i added an if “$count > 0” statement.
Here’s the whole function, please let me know if this could cause problems.
`function start_el(&$output, $category, $depth = 0, $args = array(), $id = 0) {
global $wp_query;
$queryvars = $wp_query->query_vars;
$cat_name = apply_filters(‘list_cats’, $category->name, $category);
$count = Beautiful_Taxonomy_Filters_Public::get_term_post_count_by_type($category->slug, $category->taxonomy, $this->post_type);
if ($count > 0) {
$output .= “\t” . ‘<option class=”level-‘ . $depth . ‘ ‘ . $category->slug . ‘” value=”‘ . $category->slug . ‘”‘;
if(isset($_GET)){
foreach($_GET as $get_variable){
if(strpos($get_variable,’,’) !== false){
$get_array = explode(‘,’, $get_variable);
}else{
$get_array[] = $get_variable;
}
foreach($get_array as $get_single){
if ( $category->term_id == $args[‘selected’] || $get_single == $category->slug ){
$output .= ‘ selected=”selected” ‘;
}
}
}
}
if ( in_array($category->slug, $queryvars, true) ) {
$output .= ‘ selected=”selected” ‘;
}
$output .= ‘>’;//run our custom filter
$output .= apply_filters( ‘beautiful_filters_term_name’, $cat_name, $category, $depth );if ( $args[‘show_count’] ){
//If they want a post count make sure to only show the count for this specific post type
$output .= ‘ (‘ . $count . ‘)’;
}if (isset ( $args[‘show_last_update’] ) ) {
$format = ‘Y-m-d’;
$output .= ‘ ‘ . gmdate($format, $category->last_update_timestamp);
}if( $this->show_description && $category->description ){
//If we dont want select2 we cant put anything fancy around the description so this will have to do.
if( $this->disable_select2 ){
$output .= ‘ – ‘ . $category->description;
} else {
//We just use an unlikely textstring so we can target it with JS later.
$output .= ‘:.:’ . $category->description . ‘:-:’;
}}
$output .= “</option>\n”;
}}`
Wow haha this is just great, i found out why i was getting this issue and why you weren’t, see, i wasn’t exactly clicking the dropdown arrow i was just clicking the text “All regions” if you do that the menu closes itself when you release the click (on chrome), it didn’t happen with the other boxes because they have the searchbox. So for now i’ll just add the searchbox to all fields because i don’t think people will get that you must only click the little arrow, i know didn’t. Well, maybe i’m just dumb…
Awesome! that must be the cause then! I’m looking forward the next version.
As for the the “regions” dropdown i noticed it is different than all the others. For example there’s a search function (you can type and search) for all the others but not that one. Why is that?
I found a way to reproduce the terms with 0 showing up, it doesn’t happen because i used cat2tag plugin, that’s just how Beautiful taxonomy filters works, isn’t it?
I did this:
1) Create a new term under any custom taxonomy.
– Check filters, it doesn’t show up. (hidden because of settings)2) Now Apply the new term to a custom post type A.
-Check filters on CPT-A, it shows up as (1). perfect works.3) Now check a differentr CPT archive.
– Term appears on dropdown with (0)!!!! <—Is this error or intended?Yes the term was used once but not on this CPT so it shouldn’t show up, but it shows up with (0). That’s just how the plugin works or is it just me?
Hello! i have enabled select2 and i will leave it on until you reply here so you can see it. Basically click “Regions” on Chrome to reproduce.
About the empty terms not recognized we made a post here:
http://wordpress.stackexchange.com/questions/222404/how-to-update-hide-empty-flag-for-all-existing-termsWe used your exact words because we don’t know how to explain it better, sorry!