Questions tagged [duplicates]

The tag has no usage guidance.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
702 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 ...
2
votes
0answers
470 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 (...
2
votes
0answers
1k views

Prevent Duplicate Attachment When Using wp_insert_post

I am trying to use wp_insert_attachment while using wp_insert_post. It's successfully creating the post and attachment. It have no problem if I only use the wp_insert_post function, but when I ...
1
vote
0answers
585 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' => ...
1
vote
1answer
866 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) ...
1
vote
1answer
58 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
21 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 ...
1
vote
1answer
795 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 ...
1
vote
0answers
582 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 ...
1
vote
2answers
267 views

Taxonomy archive + query attachments = duplicate results

I'm trying to get the attachments of a specific term (in its archive page). But the results are showing the resulting images 5 times instead of one. I have multiple loops in this page - one to show ...
1
vote
1answer
27 views

Let me choose permalinks

I need to pick a permalink called 'mysite.com/1418', but wordpress keeps adding '-2' to the permalink. Normally this means i already have a page called the same that is in the trash or something. But ...
1
vote
0answers
9k views

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

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/...
0
votes
0answers
15 views

During duplicating Custom Post Type with its Custom Meta fields, Meta Fields values are not duplicating

I have a custom post type called House that includes a number of custom meta fields. I want to duplicate each CPT post including custom fields data. I have used the following codes to duplicate the ...
0
votes
0answers
33 views

Prevent Duplicate Post Counted by Query

<?php while ( have_posts() ) : the_post(); $get_series_id = get_post_meta( get_the_ID(), 'series_seri', true ); if (in_array($get_series_id, $do_not_duplicate)) { ...
0
votes
0answers
9 views

Portfolio items created indefinitely from external API. Every time different number

I am trying to make new portfolio item for every json item from external api. I am working on Wordpress and placed my code in functions.php of the theme used. When i run my code, it creates portfolio ...
0
votes
0answers
180 views

How to prevent duplicate orders placed in woocommerce within a limited time

In my woocommerce site, client had placed same order multiple times,I surprised, woocommerce dont have a duplicate order trigger in the system. Is there any way, i can prevent duplicate orders(orders ...
0
votes
0answers
10 views

How to move multiple Wordpress sites to a new Server and Domain?

lets assume i have 100 Wordpress-Sites right now that are all on the domain allmywpsites.com/sites.Every sites has an area in allmywpsites.com/sites like this: allmywpsites.com/sites/site-1 ...
0
votes
0answers
37 views

Cannot login after duplicate with plugin Duplicator

I want to move my website from production to localhost for development purposes and I have used Duplicator plugin. Everything goes perfect until I want to login to this website after installation. I ...
0
votes
2answers
51 views

Someone is copying my site in real time

I discovered by accident a website that's copying mine and its content (including GA code) in real time. Not quite real time, but on a daily basis. I get how it copied my WP theme (although it looks a ...
0
votes
0answers
11 views

Duplicate posts in loop

how can I exclude posts already on the page? Currently this code excludes only posts already present and generated by this php function. I wish posts were not duplicated when I click the "Load ...
0
votes
0answers
19 views

Duplicated posts via “Load more” button

I have posts block with relative "load more" button to load the following posts, the problem is that all duplicates are presented to me. I would like to add a function similar to this to the ...
0
votes
0answers
28 views

Avoid duplicate posts using 'pre_get_posts'

I changed my categories into pages with post blocks created with a page builder (WPbakery). How can I avoid duplicate posts using Wordpress 'pre_get_posts' hook? For example. One category has many ...
0
votes
0answers
34 views

FIXED: WordPress posts display twice and theme completely breaks when using “page break” block

FIXED: content.php was duplicated. Hope this helps anyone else with this problem! Unfortunately my website (cxhnow.com) is having issues with displaying content. I have tried to Google a fix but it ...
0
votes
1answer
14 views

Google indexing duplicate page content with Page #### in post title and /page-2 in permalink instead of the ones I set

I'm hoping someone familiar with this problem can help me. I have a WordPress site with thousands of posts, and Google is indexing pages that look like this: mysite.com/page/1 mysite.com/page/2 ...
0
votes
1answer
30 views

Avoid duplicate posts with xml rpc

I'm new to Wordpress and I'm not a developer. I'm running an IFTT applet that posts a WordPress post each time I upload a new video on my Youtube Channel. There is a bug with IFTT. It often posts the ...
0
votes
0answers
73 views

Cloning product not copying custom taxonomies

I have created a custom taxonomy called locations with a lot of options on it. When I clone a product everything is cloned correctly (categories, attributies...) but not the custom taxonomy , all the ...
0
votes
0answers
45 views

Duplicate images on upload

i have the problem with wordpress when i upload 1 image is making 7 images with 7 sizes i want to have only 1 image to stop making from 1 image 7 images with different sizes. Thank you!
0
votes
1answer
238 views

Custom product loop avoiding duplicates

I am trying to create a product loop based on an attribute value from (pa_product-series). many products can have the same value, but I only want to return one from each...avoiding multiple products ...
0
votes
1answer
203 views

Duplicate/Clone a Multi-site But Use Same Images & Resources?

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resources. Is this an easy process? I realize I can strictly instruct my url paths, but in ...
0
votes
1answer
257 views

wp delete duplicate entries of custom post types every 15 minutes

looking for some assistance. I have searched the usual sites but not come across this specific question and was wondering if anybody could help. I have a scrape system that collects data and saves it ...
0
votes
1answer
299 views

Why does WP allow duplicate pages with the same name?

I ran into an issue yesterday where I saw duplicate versions of a few different pages with the same name & path. No extra number appended to them. I deleted the duplicates which caused an issue ...
0
votes
0answers
96 views

Duplicate posts on archive page

I am loading posts through ajax and it seems new load produces duplicate posts on archive standard loop. This my code I have tried several methods with $do_not_duplicate but it seems none worked or I ...
0
votes
1answer
367 views

Update or insert meta key value - On Duplicate key update

I need to bulk update some meta descriptions and have found that some of the posts don't have them so I need to do an update or insert query. (Once I get this query right I will be creating a temp ...
0
votes
0answers
35 views

I don't want my website to accessed via my public IP address

I am a newbie here When I first installed the bitnami wordpress to my cloud hosting it can accessed by public IP address. After that I have added a domain name successfully, everything went well.. ...
0
votes
0answers
64 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('...
0
votes
0answers
32 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
35 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
797 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
1k 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
206 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
0answers
31 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 ...
0
votes
0answers
49 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
2k 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....
0
votes
1answer
130 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
144 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
603 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 ...
0
votes
1answer
120 views

How to stop WordPress creating URLs that don't exist

I have a website that is constantly creating URLs that don't exist. For example a category section that only has 2 pages in it, for some reason is allowing the creation of other URLs, e.g. http://www....
0
votes
1answer
494 views

Changing username after registration to get around the issue of having duplicate emails?

I want to change username and email after a user has been created and sent an email. This is because I want!! (yes, you read correctly) to have duplicates in my database. In normal situations this is ...
-1
votes
1answer
1k 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 ...