Search for images that width and height is more than 500

You can run your $matches through the getimagesize() function to check it’s dimensions, the problem is this function requires a path to the image but your content will provide full URL’s so you’ll need to see if the image is also saved in your media library and if so grab the relative path only. If … Read more

Custom download page

Finally I solve the problem. Here the code bellow for download button. Put this code into your post loop it will show a download button. <form action=”<?php echo esc_url( home_url( ‘/your_redirected_page_slug’ ) ); ?>” method=”GET” id=”form1″> <?php global $post; //$post_slug=$post->post_name; ?> <input id=”myButton” type=”submit” name=”a” value=”Download” class=”single-download-button” /> <input type=”hidden” name=”appk” id=”mkval” value=”<?php echo get_the_ID(); … Read more

Hide disclaimer from summary excerpts

You could do something like this: /* Add disclaimer to top of POSTS that contain affiliate tag */ function tt_filter_the_content( $content ) { if (has_tag(‘affiliate’) && is_single()) $custom_content=”<hr><p><em>Disclosure: This post contains affiliate links and we may receive a referral fee (at no extra cost to you) if you sign up or purchase products or services … Read more

Nested DIV’s across functions in PHP, do not seem to work

The return command does exactly what it says, it returns the data and then returns back to the script. So, any lines after it will not be executed. You have this function in your code: function vc_make_graph() { $db_handle = new DBController(); # Show the customer dropdown ?> <div id=”overall”><?php $results = show_customer_dropdown($db_handle); if (isset($results)) … Read more

Add function to Dokan ajax class

This is the core developer of Dokan. There is a much simpler way to use your custom function for this case. This dokan_add_shipping_tracking_info action can be found within this template : /rafsuntaskin.com/wp-content/plugins/dokan/templates/orders/details.php . You can copy this into your theme and change the action to your custom function like this : rt_custom_add_shipping_tracking_info replaces dokan_add_shipping_tracking_info Then … Read more