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 [post-duplication]

The tag has no usage guidance.

0
votes
1answer
22 views

Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?

I have a requirement to add certain posts (marked with a tag or category) from "site a" to another site ("site b"). I think the best way would be for site b to periodically check site a for the ...
0
votes
0answers
56 views

twenty seventeen customizer duplicates section content

Here's a thing that baffles me. Others have reported similar problems but none that match exactly, and being pretty new to WordPress, I find myself a bit at a loss. Using the twentyseventeen theme I ...
0
votes
2answers
417 views

WP_Query offset is returning post from prevois loop

On archive pages, I let WordPress handle the archive page and load the first 10 posts, then I load more posts with AJAX requests, and this AJAX request is returning weird results. My query inside the ...
1
vote
0answers
16 views

How to copy posts from one site to another in real time (not multisite)

I'm working to rebrand my company's website (new look, URL, etc.). I've already transferred all of the existing posts, pages, users, media from site B (old) to site A (new) and I have site A up and ...
0
votes
1answer
45 views

The best way to store variable across different widgets

The front page of my site building with set of widgets. Each widget shows the rows with posts for some criteria. I want to exclude duplicate posts across different widgets. The simplest way comes to ...
-1
votes
1answer
175 views

$do_not_duplicate is not working in genesis theme

I'm using Genesis child theme and I am using this function to display feature posts on home page. function modern_motoroids_extra_feature_posts(){ ?> <?php $do_not_duplicate = array(); ?...
1
vote
1answer
95 views

Best way to prevent post duplication when using multiple loops

I have the following loops on a page on my website. Whats the best way to adapt the code below to stop the post in my first loop, being repeated in the second? <?php query_posts('showposts=1&...
1
vote
2answers
117 views

Auto-create a pretty permalink for a bunch of posts

I have spammed many duplicate posts from one initial and now after editing them the url structure for them is something like http://example.com/base-name-copy-20 where base-name is the slug of the ...
3
votes
2answers
934 views

Copy one CPT to another one in Wordpress

I'm building a site with two separate CPTs nominees and winners The idea is that we have a user submit a nomination in one of 7 categories ( taxonomy ) on the front end, and editors go in and approve ...
-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
vote
1answer
40 views

Content duplication issue with dynamic URLs

My WordPress blog creates many dynamic URLs, which creates a content duplication issue for my website. As each page gets a different live URL, it's being considered as a duplicate page. Why are ...
0
votes
1answer
225 views

WordPress Subcategory Creates 2 urls for same page (serious issue)

All subcategories in WordPress create 2 urls to same page. domain.com/parentcat/childcat/ domain.com/childcat/ both urls go to the same page. in the eyes of Google this is duplicate content. it ...
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
2answers
55 views

Prevent a query from duplicating

Trying to show featured posts on home using catID,but it is being duplicated. Is there any way to prevent it from duplicating: <?php query_posts("posts_per_page=1&cat=1"); if ( have_posts() ) ...
0
votes
2answers
806 views

Stop duplicate posts

I have three loops I want to stop them from displaying the same posts in each one. any help would be greatly appreciated <?php $i; $args = array( 'numberposts' => 8); $posts= get_posts( $args )...
0
votes
1answer
833 views

Check for duplicate custom field value before running wp_insert_post

That is, I want to prevent 'guid_review' ACF value being duplicate by checking it before creating the post. foreach ($items as $itemKey => $item) { $myPost = array( '...
0
votes
1answer
2k views

Remove duplicated posts in the loop if post has more than one category

I have some posts with more than one category. In the post loop i get the post based on the selected category by the user. If the user select 2 categories where one post is assigned to, the loop ...
0
votes
1answer
540 views

Loop through posts by each term and exclude duplicate posts assigned to several terms

Okay, i'll try to go a bit more into detail. What i did with this code is getting a list of artists ordered by alphabet. In this list i'm showing all corresponding news posts to this artists term. ...
1
vote
1answer
160 views

Multi row post list

I'm trying to create a 'two posts per row grid'. Here is the template i made: <div class="row"> <div class="span2"> <?php get_sidebar(); ?> </div> <div class="...
3
votes
2answers
2k views

Mysql Query to Delete Duplicate Wordpress posts?

I have a lot of duplicate posts. So, how to delete them (only keep 1 post). If they have same title, they are duplicate posts. Thank you very much ! Have a nice day !
3
votes
0answers
2k views

Copying Custom Meta Values from existing post to a duplicate post

I'm trying to revise an existing WP plugin BU Versions to accept different custom meta field values from items I've set-up using the Advanced Custom Fields (ACF) plugin. BU Versions will copy over ...
1
vote
1answer
515 views

How to append unique numbers to new duplicated post titles/urls?

As of now if you create two (2) posts with the same title you get the following: domain.com/test/ domain.com/test-2/ If you create a third post, you then get another url like: domain.com/test-3/ I ...
-1
votes
2answers
3k views

How to save the same post in multiple blogs?

I would like to write my post in one of the my 3 blogs and the same post will be published in the other two blogs. How can I do that?
1
vote
1answer
6k views

Ajax loading duplicate post

I wanna start by apologize for this post being so long, but I feel it may help others since I am having this problem and figured I might as well be as detailed as possible. I am having a problem with ...
2
votes
1answer
3k views

How do I Import an RSS feed as Wordpress posts without duplicates?

I have an XML feed url I am now using this code to create new Custom Post Type Posts from an rss feed in my functions.php file: /* | ---------------------------------------------------------------...
1
vote
1answer
2k views

Custom post type and taxonomy - show related posts

I have a Projects custom post type with a custom taxonomy of Services. Each project can have multiple services ticked. On the project page I am using the following code to pull back related projects ...
1
vote
2answers
3k views

WordPress Network (MU): Copy Main Site to Sub-Site

I would like to copy all the posts, users, and pages from my main site into a sub site. I've tried exporting and importing, but the main site has thousands of entries and hundreds of users, and the ...
1
vote
1answer
234 views

How-to Change Content with location change?

I have to develop a site using wordpress having thousands of pages. Pages will have the same content but there will be change in the location of the content. For example location will be Sydney, ...
1
vote
1answer
2k views

How to avoid duplicate posts on front page?

how to avoid duplicate posts on front page? i have 1 category 'news' for all posts and some categories like 'vegetables' and 'fruits'. Each post is in 'news' and particular category. At the top of ...
3
votes
1answer
630 views

Real time Duplicate title check

On my website there are a lot of authors and they are all writing about italian 'scene' so sometimes it happens that two of them write the same post or use same title so what I'm looking for is a way ...
1
vote
4answers
10k views

How to change title tags on paginated posts?

I've created many post with multiple pages with the nextpage-tag. The problem is that these show up as errors in "Google Webmaster Tools" because of duplicate title tags and meta descriptions. The ...
1
vote
3answers
2k views

How to prevent duplicate posts with wp_insert_post on single.php?

I'm getting a really strange bug (WP 3.1.3). My goal is to have users create a new post simply by landing on a single post. In order to make that happen, I have the following code in my single.php: ...
3
votes
1answer
4k views

remove missing image attachments

Best way to programatically remove attachments that are missing images? I ask because after using a caching plugin, I have images that have been input in the database as attachments that don't ...
1
vote
1answer
889 views

wp_reset_query equivalent for WP Ecommerce

I'm having product duplication issues while running two loops on a single page. Is there an equivalent to wp_reset_query for wp ecommerce? You can see the site at http://standingarmed.com/products-...