The Stack Overflow podcast is back! Listen to an interview with our new CEO.
May
12
awarded  Notable Question
Feb
7
awarded  Popular Question
2018
May
31
awarded  Popular Question
2017
Aug
15
awarded  Benefactor
Aug
11
comment Woocommerce query by price range and custom meta key
Yes. It works normal. phonearena.lv/en As you can see, there is custom price tabs. But now i fixed my self this. Strange is that, that numeric true or false is not working, but when i do custom field show and value Yes, its working. array( 'key' => 'show', 'value' => 'Yes', 'compare' => '=', ),
Aug
11
comment Woocommerce query by price range and custom meta key
That is only example, custom meta key can bet anything. Without custom meta key, code is working normaly, so i need that code also take meta key.
Aug
10
awarded  Promoter
Jul
27
asked Woocommerce query by price range and custom meta key
Mar
30
comment Displaying Custom Post Meta
Any normal plugin provide use custom output shortcode, function, even on widget. In your version then plugin need to say, with post type we want apply the_content rule. So there need to be also plugin admin page with checkbox and rules, how we want apply the_content rule.
Mar
30
answered Displaying Custom Post Meta
Mar
30
comment Displaying Custom Post Meta
Ahh, you can open your single.php template file and just do: echo do_shortcode( '[my-plugin-rating]' ); for example, and that is showing only on posts, not for custom posts or anywhere else in site where output the_content. Your solution yes, it is simply, but dirty. If author say, i want make a plugin, not a function.
Mar
30
comment Displaying Custom Post Meta
simple ranking plugin when you create plugin that can affect to content, better always do seperate, becouse, content can be output for page, or categories, or single, or custom post types. If users dont want show ranking for example in custom gallery post, there is no options to do. But if you use function, or shortcode, you can output it on everywhere and control the output, via shortcode you can also put in content editor it self.
Mar
30
answered Read more link to external webpage
Mar
30
comment Displaying Custom Post Meta
Better solution is add shortcode support or event call output function.
2016
Sep
13
comment How to use order RAND() on Wordpress?
Your query is wrong. Orderby cant contain array like yours. codex.wordpress.org/Class_Reference/WP_Query $args = array( 'orderby' => 'rand', 'posts_per_page' => '1', ); $query = new WP_Query( $args );
Sep
13
comment Cannot control wp_nav_menu properly
Yes, there is a bug. If you set a container false and use custom nav class, it will be setup on div. Remove 'container' => false,to set custom class on UL element.
Sep
13
answered Site Cookie Error, Redirection and Blank Pages after Upgrade
Apr
27
answered Wrap custom terms loop
Apr
27
asked Wrap custom terms loop
2015
Feb
13
comment Customize Query for post
Please install Query monitor plugin to see, if your server is not so slow. I am using ACF with 40 field groups and 150 custom fields total, query runs in miliseconds.