How to change Thumbnail size of next Gen Gallery plugin?

For the specific display you will need to re-open the IGW by clicking on the preview image in the post/page then under the customizations tab change the override thumbnail size option to yes and set the dimensions as needed. You may need to clear your image cache under Gallery > Other Options > Miscellaneous to … Read more

register_post_status invisible but searchable

You can filter your admin query with pre_get_posts filter. function wpse_306361_admin_search($query) { if(is_admin() && $query->is_main_query() && $query->is_search()) { $query->set(‘post_status’, array(‘publish’, ‘draft’, ‘what-you-want’, ‘your_custom_status’)); } return query; } add_action(‘pre_get_posts’, ‘wpse_306361_admin_search’, 10, 1); It will check if query is in admin, if it’s main query and if it’s a search query. If it’s only for a post_type, … Read more

Could someone please help me to add category id with in this query so this will return posts from a certain category?

Please follow proper wordpress method not follow someone’s code or copy paste code. /* * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp- includes/query.php */ $args = array( //////Category Parameters – Show posts associated with certain categories. //http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters //all categories parameter ‘cat’ => 5,//(int) – use category id. ‘category_name’ => ‘staff, news’, //(string) – Display posts that have … Read more

How can I filter the contents of a metafield before it’s displayed in the admin?

I have seen that CMB2 offers the possibility to create a custom escaping function with which the values are checked before they’re displayed. So I set the escape_cb parameter in the metafield this way: $cmb->add_field( array( ‘name’ => esc_html__( ‘Text Area for Code’, ‘cmb2’ ), ‘id’ => $prefix . ‘textarea_code’, ‘type’ => ‘textarea_code’, ‘sanitization_cb’ => … Read more

Issue with post request to admin-post.php

(Revised answer) I have changed my action to yours but it still doesn’t work. Here is my repo for this plugin if you want to see. I’m at a loss at the moment: github.com/SeanDez/frequentVisitorCoupons So I tried and tested your plugin, and noticed that you’ve got two “actions” (i.e. action fields) on the same form. … Read more

Suspicious google tag manager

When I disable Content Visibility for Divi Builder then the tag goes away. Seems suspicious… maybe they got hacked or maybe they are bad cookies. Will try to move this to the proper reporting channels. AoD Technologies LLC is the developer. Edit: wanted to temper this with a third possibility of tracking the usage of … Read more

merging an array to an existing array using add_filter

You are overwriting $args in add_yourself_to_some_examplehook(). Based on what you’re saying you want to achieve, you should be appending the new item instead: add_filter( ‘some_example_hook’, ‘add_yourself_to_some_examplehook’ ); function add_yourself_to_some_examplehook($args) { $args[ ‘Hello5’ ] = ‘HELL4’; // <– Note the syntax here. return $args; }