MrNikolsh
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Fields Search] Query_posts or get_postsDecided.
<script type="text/javascript"> $('option').each(function(){ if( $(this).text().trim() === '' ) $(this).remove(); }); </script> <style> select option[selected=selected]:nth-child(2) { display:none; } </style>
Forum: Plugins
In reply to: [WP Custom Fields Search] Query_posts or get_postsHello! How to make sure that empty OPTION are not displayed and are not SELECTED by default. The plugin’s default selection is “ВЫБРАТЬ ВСЕ”, but empty values are output from the database. Thank!
Forum: Plugins
In reply to: [WP Custom Fields Search] Query_posts or get_postsDon, this code helped me! + code for functions.php
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array('order'=>'ASC','orderby'=>'meta_value_num','meta_key'=>'cena','posts_per_page'=>24, 'paged' => $paged, 'page'=>$paged ); query_posts($args); if (have_posts()) { {echo '';} while (have_posts()) { the_post();?>
Thanks for the help and great plugin! If you add Ajax to it, then he will not be equal.
Forum: Plugins
In reply to: [WP Custom Fields Search] Query_posts or get_postsThanks for the answer! I myself created this theme. The CENA field is PRICE (Цена in Russian – cena).
Added
add_filter code ('wpcfs_should_override_current_query', function () {return true;})
to functions.php, sorting worked, but pagination stopped working. When switched off, the first page remains.<?php the_posts_pagination( array( 'screen_reader_text' => ' ', 'show_all' => False, // показаны все страницы участвующие в пагинации 'end_size' => 1, // количество страниц на концах 'mid_size' => 1, // количество страниц вокруг текущей 'prev_next' => True, // выводить ли боковые ссылки "предыдущая/следующая страница". 'prev_text' => __('?'), 'next_text' => __('?'), ) ); ?>
What is the problem?
Forum: Plugins
In reply to: [WP Custom Fields Search] Query_posts or get_postsQuery_posts worked on the old version of your plugin.
- This reply was modified 4 years, 8 months ago by MrNikolsh.
Forum: Plugins
In reply to: [GuiForm] Multiple Upload error!?
Forum: Plugins
In reply to: [GuiForm] Multiple Upload error!Hello, Russell! Can you solve this problem. Very necessary. Thank you!
Forum: Plugins
In reply to: [GuiForm] Multiple Upload error!Hello, Russell! The form works only if you are registered on the site. Try to get out of the WordPress admin panel and upload the files again. I could not upload the files to your demo form. https://demo.guiform.com/?form=1
Can you upload the files in the form on this page? https://ib-models.ru/kontaktyi/
Thank you!
Forum: Plugins
In reply to: [GuiForm] Multiple Upload error!I sent you a link and a screenshot.
Forum: Plugins
In reply to: [GuiForm] Multiple Upload error!Please Help Me!!!