duplicate wordpress site on same bdd
duplicate wordpress site on same bdd
duplicate wordpress site on same bdd
get_pages causing duplicates
I don’t want my website to accessed via my public IP address
look at http://www.mysqltutorial.org/mysql-find-duplicate-values/ to get meta values, you need to assign : wp_postmeta.meta_key = ‘syndication_permalink’ AND wp_postmeta.meta_value=”$yourvalue”
Duplicate posts on archive page
I think I found the issue. It looks WPML, the translation plugin, makes a duplicate page for every translated version of a page. So we had multiples of a few pages that were translated into various languages. Sidenote: WPML stopped working a couple months ago and none of their fixes have worked yet. So no … Read more
Start by ensuring that there is actually a 15min interval available. // create the cron scheduled interval to be used add_filter(‘cron_schedules’,’ex11_cron_schedules’); function ex11_cron_schedules($schedules){ if(!isset($schedules[“15min”])){ $schedules[“15min”] = array( ‘interval’ => 15*60, ‘display’ => __(‘Once every 15 minutes’)); } return $schedules; } Then create a custom WP_Query loop to fetch all the records you need to compare, … Read more
If you have access to a Linux/Mac/Unix command line with bash, you can do the following: Export your database to an SQL file. Use sed command with -E to run regex search and replace operations on URLs that do not contain wp-content/uploads (or whichever folder contains your media) Import your SQL file to the new … Read more
Currently, it looks like you are looping through comments and then querying the posts from there. Could you use the comment_count order by parameter directly in the posts query itself? For example: <?php $post_args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 1, ‘orderby’ => ‘comment_count’ ); $posts = get_posts($post_args); foreach ($posts as $post) : setup_postdata($post); … Read more
Duplicate images on upload