kusachiy
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Fields Search] Pagination problemHi,
I’m not the developer of this plugin, but I also faced this problem and I fixed it with this custom pagination code:
$current_page = !empty( $_GET[‘page’] ) ? $_GET[‘page’] : 1;
$query = new WP_Query( array(
‘posts_per_page’ => 10,
‘paged’ => $current_page,
) );echo paginate_links( array(
‘base’ => site_url() . ‘%_%’,
‘format’ => ‘?page=%#%’,
‘current’ => $current_page,
) );wp_reset_postdata();
- This reply was modified 2 years, 2 months ago by kusachiy.
Forum: Plugins
In reply to: [Custom Taxonomy Order] wp_list_categories partially brokenI use old theme Arthemia, but it totally modified by me, the discussed part is added by me.
$cat_id comes from:$category = get_category( get_query_var( 'cat' ) ); $cat_id = $category->cat_ID;
I use Enhanced Categories, but its deactivation doesn’t help.
I also used old, dicontinued plugin Category Order (https://wpguy.com/plugins/category-order), but it is deactivated, I’m trying to replace it with your plugin. But may be its changes to databese of taxonomies affect to work of your plugin…The option of sorting in your plugin is “Custom order”.
I discovered that wp_list_categories without “child_of=” option works good, it displays section of “problem” category right. So I wrote a workaround:
if ($cat_id == 15 ) { $list_cat = wp_list_categories ('title_li=&show_count=1&depth=2&echo=0&show_option_none=no&exclude=1,13,35,49,26,601,2185,2194'); }
For category with id=15 (“problem” category) call wp_list_categories and exclude all top-level cats except one category wich subcategoris I need. As “depth” is “2”, it returns $list_cat with links to Cat-1-1 and – what I need – Cat-2-1, Cat-2-2 and Cat-2-3. After that I just remove link to Cat-1-1 from $list_cat.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Disable Relevanssi for some searches?Thank you very much, it helped!
Forum: Plugins
In reply to: [Contextual Related Posts] Exclude posts dynamically@ajay, this works fine for me, thank you very much for reply and such a nice plugin!
Forum: Plugins
In reply to: [Contextual Related Posts] Usage of get_crp_posts_idThank you!
Forum: Plugins
In reply to: [Contextual Related Posts] Usage of get_crp_posts_idGot it. Wrong function call, it should be
$rel_posts = get_crp_posts_id(array ('postid' => $post_id, 'limit' => 5));
Forum: Developing with WordPress
In reply to: Limit posts for tag outputTnank you very much for detailed reply!