Roman O?ana
Forum Replies Created
-
Forum: Plugins
In reply to: [Deeper Comments] translate the pluginShould be wp-content/languages/plugins/depc-[lang].mo
Forum: Fixing WordPress
In reply to: WP Showing Posts Inconsistency in CategoriesHave same issue, some categories show posts some not. Do not know why, but
have_posts()
fromcategories.php
returnsfalse
. Here is follow code that you can put to thecategory.php
template:<?php echo '<pre style="background: #eee;padding: 1rem;">Debug' . PHP_EOL; echo 'have_posts() = ' . var_export(have_posts(), true) . PHP_EOL; $category = get_queried_object(); $args = [ 'post_type' => 'post', 'tax_query' => [ [ 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $category->term_id, ], ], ]; $query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); printf('> %s (id=%d)' . PHP_EOL, get_the_title(), get_the_ID()); } } echo '</pre>'; wp_reset_query(); ?>
- This reply was modified 4 years, 3 months ago by Roman O?ana.
Forum: Plugins
In reply to: [MCE Table Buttons] Add Classes and ID to table properties+1
Still not working well @wpyoda: announce the same problem https://goo.gl/wWdj3
In function post_join_filter() need to be INNER JOIN if $join is empty.
I am not sure if my changes are correct, there was no time explore all posibilities, but seems to be.
When turn off Co Author plus everything return to normal. https://minus.com/l5ZjNq9eijbJI – screenshot from admin.
Problem is in join function:
add_filter( 'posts_join', array( $this, 'posts_join_filter' ), 10, 2 );
https://pastebin.com/Lb89JP17 – there is my hotfix of that bug. I am not 100% sure if is correct but seems working
I have same problem, some post show up 3 or 5 times in archive and admin interface when somebody try list specific author by name.
Forum: Plugins
In reply to: [Multiple Galleries] Does not work with 3.1.20.4.1 version of plugin not working in WordPress 3.1.2 there is some javascript problem with checkboxes
Forum: Plugins
In reply to: [Onswipe] [Plugin: Onswipe] Comments closed when using DisqusGo to comments settings (in wordpress admin) and uncheck close comments after xxx days.