How to find where an image is used by it’s url

function searchstring_wpdb(){ global $wpdb; $mytables=$wpdb->get_results(“SHOW TABLES”); $ss=”cdn.cloudflare.com”; //string to search $used_is=””; foreach ($mytables as $mytable) { foreach ($mytable as $table) { $existing_columns = $wpdb->get_col(“DESC {$table}”, 0); foreach ($existing_columns as $existing_column) { $last_link =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$table.” WHERE “.$existing_column.” LIKE %s”, ‘%’.$ss.’%’)); if ($last_link){ foreach ($last_link as $row) { if (strstr($table,’postmeta’)){ $used_is .= ‘, Used in … Read more

Genesis Child Theme – Customize body

You need to add the Loop to your template to display post content. Regular loop (the current page). <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <article> <h2><?php the_title(); ?></h2> </article> <?php endwhile; ?> <?php // Navigation ?> <?php else : ?> <?php // No Posts Found ?> <?php endif; ?> Custom … Read more

When/where would want to attach other classes to the base class in a WordPress plugin?

It’s hard to answer that without some additional code to accompany it as those aren’t WordPress core functions and could be doing anything really. Based on a previous question, I’ll assume one of the plugins you’re referring to is the LiquidChurch/lqd-messages plugin and I see those methods in the main plugin file. Even if this … Read more

Dequeue Table of Content font

You can use this code add_action( ‘wp_enqueue_scripts’, ‘dequeue_ez_icomoon’, 11 ); function dequeue_ez_icomoon() { wp_deregister_style( ‘ez-icomoon’ ); wp_deregister_style( ‘ez-toc’ ); wp_register_style( ‘ez-toc’, EZ_TOC_URL . “assets/css/screen.min.css”, array(), ezTOC::VERSION ); }