In case Facebook shows the wrong image for your link and you want the updates you have done be shown on a new share, you might need to update their cache for your page. To do that, access this page.
Reset the term count: UPDATE wp_term_taxonomy tt SET count = (SELECT count(p.ID) FROM wp_term_relationships tr LEFT JOIN wp_posts p ON (p.ID = tr.object_id AND p.post_type = 'post' AND p.post_status = 'publish') WHERE tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.taxonomy = 'tag';
To delete the media files without leaving traces in the database, do the following: Connect to the mysql database – using phpmyadmin, for example – and run the following queries: DELETE FROM wp_postmeta WHERE post_id IN ( SELECT id FROM…
mrbunnycooking.com is a cooking blog based on WordPress. Some of the modifications and features will be described below: WordPress child theme; custom css, php and javascript; custom sizes for WordPress images, automatic resize of images inside a post; usage of…
Recently, I have had this request from a friend of mine, who had trouble with adding images into their post. In the following code, you will find “thickbox no_icon”, which is added for the plugin “auto-thickbox” used in that site.…
To add some content to your post body, add the following to your functions.php file: /** Alter the content */ function add_some_content($content) { $content .= 'The new content'; return $content; } add_filter( 'the_content', 'add_some_content', -9999 );
Add the following code into your functions.php file: function custom_search_query( $query ) { $custom_fields = array( // put all the meta fields you want to search for here "custom_field1", "custom_field2" ); $searchterm = $query->query_vars['s']; // we have to remove the…
The following code needs to be added to your functions.php file: <?php /** * All in one SEO title and description autocomplete */ function aiosp_editor_title() { ?> <script type="text/javascript"> jQuery(document).ready(function(){ var title = jQuery("#title"), aiosp_title = jQuery('[name=aiosp_title]'), val_title = title.val().replace(/^s+|s+$/gm,'')…