Articles of duplicates

how to find duplicated permalinks?

I’ve got a duplicated permalink somewhere, so I can’t name the new one like that. Normally, I simply check the other posts, categories, media, even on the thrash. But this time I can’t find any content with that permalink. I took a look to the database, did some search, but really can’t find. It’s strange. […]

Multiple duplicate URL's

I keep getting these duplicate pages for my about page. I can’t figure out what is causing this issue. Any help or direction?

How to avoid duplicating same meta_value?

I have “publication_year” as meta_key for some images/attachments. I want to list all meta_values inside html table, but I don’t want same publication_year value to repeat, my code is: <?php $args = array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘numberposts’ => -1, ‘orderby’ => ‘menu_order’, ‘order’ => ASC ); $attachments = get_posts( $args ); echo […]

Removing duplicate values between two wordpress queries

I’m addressing a well known issue in WordPress, in which I want to display “featured” posts, and under it the rest of the posts. I have a $query1 which holds 2 featured posts, and my query_posts which holds all of the posts on the site (including those two from $query1). I now wish to remove […]

$wpdb->insert Giving duplicates

I’m getting duplicate entries with this, how can I fix it please? <?php echo “Month”. $_POST[“Month”]; global $wpdb; $wpdb->show_errors(); $wpdb->print_error(); $wpdb->insert( ‘church’, array( ‘Firstname’ => $_POST[“Firstname”], ‘Surname’ => $_POST[“Surname”], ‘Month’ => $_POST[“Month”], ‘Day’ => $_POST[“Day”], ‘Email Address’ => $_POST[“Email”], ‘Mobile Number’ => $_POST[“Number”] ) ); ?>

Updating a live theme safely?

Apologies for the general question, but I spent some time looking for an answer and couldn’t find anything. I often find myself in a situation where I need to make tweaks to a live site based on a client’s feedback after going live, so I’m wondering the best way to quickly make changes on the […]

2 wordpress loops showing 1 post from same post type – how to avoid showing the same post?

I got to two loops in my template files. Both querying the same thing essentially. This loop in my header: $testimonial_head = new WP_Query(array( ‘posts_per_page’ => 1, ‘post_type’ => ‘testimonial’, ‘post_status’ => ‘published’, ‘orderby’ => ‘rand’ )); if ($testimonial_head->have_posts()) : and this loop in my side bar: $testimonial_sidebar = new WP_Query(array( ‘posts_per_page’ => 1, ‘post_type’ […]

How to allow duplicate comments AND without comment text

I’ve searched hard but I’ve been nowhere near close to finding the answer to this… I have a comment meta box that gives the commentor two tick boxes. The tick box is the only input into their comment, therefore there is lots of duplicate comments. At the same time there is no content in the […]

Multiple URLs with Numbers

I am trying to correct a problem on a WordPress site which is producing duplicate pages in the format of: /about-us/connecticut/3/3 /about-us/connecticut/3/3 /about-us/connecticut/3/ /about-us/connecticut/3 /about-us/connecticut/ I cannot determine what is causing this to happen. Can anyone suggest ways to stop this from happening? Thanks, Josh

How to fix database error duplicate entry

At first I thought this was just a damaged table, so I tried repairing via MySQL, but it appears there’s more fundamental issues. Which of the duplicates should I remove, and any further advice in dealing with this issue? [Fri Jun 07 01:51:17 2013] [error] [client 86.42.10.69] WordPress database error Duplicate entry ‘cron’ for key […]