Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [duplicates]

The tag has no usage guidance.

0
votes
0answers
28 views

Allow duplicate slugs for custom post type with taxonomies

I have set up a custom post type (team) and a custom taxonomy (team_tax) for this post type, both with the same slug. Down to the core: register_post_type( 'team', array( 'labels' => ...
0
votes
0answers
6 views

Multiple Home Options in Page Menu Items in Wordpress

Hi i have Home as an option 3 times when arranging my menu in Wordpress. I have no duplicate pages, I have tried deactivating all the plugins etc. Want just the right one left and delete the 2 ...
2
votes
0answers
112 views

Find duplicate posts with same slug and author

We imported over 250K posts into our multi-author WordPress database but have found duplicate posts where the same author has multiple posts with the same slug. Could you please recommend a MySQL ...
0
votes
0answers
185 views

Ajax duplicate multiple inline data checking from database

I am trying to make a form with multiple same type field (i.e. title) in Wordpress. In that case I need to ensure that no duplicate data is being attempted to insert before the form is submitted. I ...
0
votes
0answers
26 views

get_pages causing duplicates

I am using get_pages to get all the page content for my front page. I am passing post_content through the content filter $content = $page_data->post_content; $mycontent = apply_filters('...
2
votes
1answer
503 views

Duplicate Category and Page URL loads Category instead of the Page

I have created a Category with the slug service, which has the permalink: https://example.com/service. and a Page with the link: https://example.com/service. In the Category service, there is a post ...
1
vote
1answer
68 views

Events Made Easy Plugin - Duplicate Title Tags

I use the Events Made Easy plugin to handle events for a client. Recently while scanning my site for issues, I noticed that I'm getting blasted with duplicate title tags in the "events" pages as they ...
0
votes
1answer
165 views

Translate pages and URLs without duplicating

I would really appreciate some suggestions about what plugin to use in WP with DIVI editor, to translate my web site and following these specs: do not duplicate pages (that's really important) ...
0
votes
0answers
20 views

Removing duplicates from a merge of custom taxonomies

I'm trying to remove duplicates from a merged array. It has 4 custom taxonomies inside it. I already tried with 'array_unique' and with a regular PHP foreach. Here is the example with a regular ...
1
vote
1answer
43 views

Don't insert if permalink is the same?

I have a foreach loop inserting posts. And I already have statements to check if post already exists by unique meta values. But somehow, often when site is loading slowly, something strange happens ...
1
vote
0answers
13 views

How to duplicate a wordpress user and all his/her data from custom fields?

I have many user profiles with a lot of data via custom fields, and have to add it manually. I am wondering how to duplicate users, and then modify some of the data to speed up the process. For what ...
0
votes
0answers
30 views

Remove duplicates from wp_term_relationships

There is an integrator system populating my wp_term_relationships table. The problem is that this integrator is adding duplicate values to term_relationships table. How can I remove all duplicates ...
0
votes
0answers
28 views

duplicate wordpress site on same bdd

I have only one bdd with 2 wordpress sites : first with _wp suffix second with _wp2 suffix. For the url : mydomain/site1 mydomain/site2 Now i need to duplicate the site2 as site3 (mydomain/site3) ...
0
votes
0answers
24 views

Where is the source code in the console coming from?

I am having a bit of an issue with menu creation. A bug in WordPress (4.9.4)? -- I am creating a theme and am now adding custom menus. The header menu is fine now. But the footer menu is mirroring ...
0
votes
0answers
304 views

How to remove the duplicate title tags and duplicate meta descriptions?

Google search console detects my duplicate title tags and duplicate meta descriptions... I don't know how can I remove them. These two problems are same. It's from same page. My main page and page 2.....
0
votes
1answer
196 views

How can i find posts with duplicate featured images?

I came across this plugin "Fix Duplicates" which is able to find duplicate posts based on post title and by replacing value from "post_title" to "post_content" in a few places i am able to make this ...
0
votes
1answer
546 views

Select data from foreach loop and send it to wordpress database

The project that I'm working on have a user login section. Once the user logged in, they should be able to see a list of orders that they made in the past which are stored in the database. The list ...
0
votes
1answer
37 views

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?
0
votes
1answer
121 views

Duplicate post/product permalinks. (Link is temporary)

We have 8 different types of products on our site. Often I will duplicate a similar product when creating a new similar product. So instead I created 8 drafts that contain most of info I need when ...
0
votes
1answer
362 views

Duplicate Cron Jobs Using wp_next_scheduled / wp_schedule_event

I'm working on a plugin to register and schedule various cron jobs. I am: using WP Crontrol (just to see all of my cron jobs and override them if need be) have a server cron job set up and have ...
2
votes
0answers
285 views

Prevent wp_insert_user from creating duplicate users

I have a custom plugin that automatically creates a new user via wp_insert_user() if the current user does not exist yet. We use data from our remote ldap server to provide the new user's details (...
1
vote
2answers
44 views

Two posts are loaded instead of one?

I am trying to add a read posts function to my Wordpress website. To achieve this, I create a cookie on which I store all the IDs of read posts. Every time a post is loaded, the following function is ...
1
vote
0answers
339 views

Duplicate posts in paginated results

I'm running into an issue where there are duplicate posts appearing in my paginated results. I suspect the issue is to do with my use of paginate_links(), but if anyone can see something obvious in my ...
0
votes
1answer
956 views

Delete duplicate record in wp_postmeta

Some of my posts have two values for a meta key called cb_full_width_post. I want to only keep the records that have a meta value of nosidebar-narrow. This means I need to Identify records in ...
0
votes
0answers
27 views

Is it possible to dupplicate a Wordpress post with php?

My Question: Is there some simple function i can use to duplicate a post with a php code, so for example every time someone enters a specific page it will duplicate a given post? More details: I have ...
1
vote
1answer
117 views

Performance : Duplicating `add_action`

If was wondering about PHP performance on Wordpress, If I had many duplicate add_action. add_action( 'init', 'func_a' ); add_action( 'init', 'func_b' ); add_action( 'init', 'func_c' ); //... so on ...
0
votes
0answers
42 views

Trouble cloning a live Wordpress site to a new site on a local server?

I'm new to Wordpress and need to set up a local testing environment where I can make changes to a CLONE of the live site. It is using version 3.4.2., hosted on Dreamhost, and contains several ...
0
votes
1answer
998 views

How to remove Base URL Duplication?

I have an issue in the download link, the URL getting duplicate. Like this http://localhost/test/files/http://localhost/test/files/2016/05/testonly.docx same as the live website: http://www....
1
vote
2answers
67 views

Part of title duplicating but not sure how to remove from code - help?

I inherited a problem that no one in my office can figure out. Our company website has page titles in the format of "Page Name Company Name - Company Name." The first instance of Company Name is a ...
-1
votes
0answers
68 views

Duplicate Custom Posts

I am having trouble with a site duplicating posts. It will duplicate "page 2" on "page 3" and it will duplicate one other specific post. It also isn't showing all the posts, but I think this has to do ...
-1
votes
1answer
664 views

ACF Field to set Publish Date - Post Duplication upon Update

So I am attempting to have a ACF set the date published of a Custom Post Type... and it sort of works. It will set the date of the post correctly the first time, but upon updates it will update the ...
0
votes
2answers
27 views

Duplicated WordPress Site STILL Linked to Old Site

I have WordPress site 1 on domain1.com. I copied WordPress site 1 to WordPress site 2 on domain2.com (database and files). Both WordPress sites have their independent database names/usernames/...
0
votes
1answer
754 views

WPML - Auto Duplicate Post Issue

I'm using WPUF Pro form to submit a custom-post-type vehicle, through frontend. I added a custom function to auto-duplicate post on publish. I notice that when I got the Form in 2nd language (not ...
0
votes
2answers
2k views

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 ...
1
vote
1answer
471 views

How do I host Wordpress on a hidden domain through a reverse proxy?

I have a reverse proxy for http://www.xxxx.com/guides/ pointing to Wordpress on another domain. I want to edit and administer it via the other domain, but I don't want the contents to be publicly ...
2
votes
1answer
577 views

Duplicates with WP_Query loop

I'm showing on my front page only posts with featured image. My problem is that on every next page load I receive the same results aka getting duplicates. I'm using ordering by custom field. Any ...
1
vote
1answer
1k views

Prevent duplicate post from dynamic multiple loops

I was trying to list 20 recent posts, and put a post from custom post type on every 5th item. So it's like: Post Post Post Post Post Custom Post Type Post Post Post Post Post Custom Post Type .. and ...
0
votes
1answer
1k views

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 ...
0
votes
1answer
13k views

Checking if the data already exsis in the wp database - custom plugin

I'm trying to insert a user input to a custom table in wp and I don't want to have a duplicate entries. So my code to check that is: global $wpdb; $tablename=$wpdb->prefix."students"; //...
0
votes
1answer
111 views

Duplicate pages with ?s parameter

I scanned my website with a duplicate content scanner tool, and it gives me lots of duplicate content pages with ?s parameter at the end, which are crawled by Google. How can I remove these pages? ...
0
votes
1answer
1k views

Disable image rename on upload

When I upload an image (test.jpg) with the Media manager it creates the same image with a digit after its name (test1.jpg). I disabled image cropping so files like test-[width]x[height].jpg don't ...
1
vote
1answer
195 views

Problem:Save Several Duplicate posts in The Database and then Error nesting level of '100' reached

I have a function to insert a single post in the database. But when I run the function, duplicate posts (40) are added to the database and then an error is displayed. Fatal error: Maximum function ...
-1
votes
1answer
842 views

prevent duplicate comments using wp_insert_comment

i am trying to import facebook comments to wordpress what iam doing is get the graph of the facebook post Comments, json decode it then i import the comment via this code so my code so far is ...
0
votes
1answer
948 views

Avoid duplicate while merging two query post

I have merged two query post, but when I fetch their results, it shows duplicates. Here is the code $arg = array('post_type' => 'story','post_status' => 'publish', 'orderby' => 'date', '...
0
votes
1answer
72 views

hierarchical taxonomy in permalinks? using same slug

I use permalink: /%category%/%postname%.html and want to have categories like this: Wheels Mercedes Toyota Brakes Mercedes Toyota I want their URLs like this: mysite.com/wheels/mercedes/mypost....
0
votes
0answers
297 views

Remove duplicates from foreach

I'm trying to loop through a custom post type and display all meta values for a meta key. I'm able to display all the values, however there are some duplicates. I want to remove those duplicates. I ...
4
votes
4answers
9k views

How do I check for a duplicate record before inserting using wpdb

I am inserting a row into a custom table in a wordpress database. this is the code: $wpdb->insert( 'wp_pl_my_parts', array( 'user_ID' => $user_ID, ...
1
vote
3answers
189 views

Duplicating Complete Wordpress Install for Development and then Redeployment?

What is the best way to duplicate an entire Wordpress site, including database, themes, plugins and all associated settings to another URL for development purposes, and then redeploying it back to the ...
1
vote
1answer
3k views

$wpdb->prepare with ON DUPLICATE KEY UPDATE

I just took this code from $wpdb Codex page, and modified my existing Insert query: $table = $wpdb->prefix . 'user_req'; $post_id = explode('_', $_POST['post_id']); $user_id = $_POST['user_id']; $...
2
votes
2answers
1k views

Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin

I have a wordpress table like so (phpmyadmin and MySQL) | id | meta_key | meta_value | +----+-----------+------------+ | 1 | import_id | abc | | 2 | import_id | abc | | 3 | ...