I'm looking to cleanup wp_postmeta. I've found dozens of duplicate entries. I've spend about 8 hours looking through topics and trying code and plugins to no avail. The most useful article on the subject I found is this. However the article is from 5 years ago and I'm not sure that the suggested code leaves at least 1 entry from each duplicate. Also the plugin that is suggested (Cleanup Duplicate Meta) is exactly what I need, but it hasn't been …
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.homecredit.ph/wp-content/uploads/home1/homecre1/public_html/files/News-26.jpg, the URL messed up How to fix this? I didn't add anything in the .htaccess .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /test/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /test/index.php [L] </IfModule> # END WordPress Here's the code for download link: functions.php function upload_user_file($file = array()){ require_once(ABSPATH . 'wp-admin/includes/admin.php'); $file_return = …
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) translate page URLs, translate page visible text, as well as hidden text (meta tag values), keep in place existing page layouts and elements built with DIVI, Actually I am not sure that is possible, having pages designed with DIVI. I am playing with Polylang, but looks like is …
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 define('DISABLE_WP_CRON', true); in place When I went into 'Cron Events' within Crontrol I saw that some functions were added literally hundreds of times. Specifically, in 'Cron Events' the function is what's getting registered/listed, not the hook. A simplified version of …
I am wondering if you can help. I have a wordpress site with 90000 media entries, but only 1000 images. I do not want to remove the images from the media gallery just the entries in the database that have been duplicated. I know that you can find the duplicates in the wordpress admin area using a plugin however they delete all the images rather than just the duplicated database entries. SELECT posts.ID, posts.post_title AS title, posts.post_content AS content, files.meta_value …
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 table and insert using a CSV) I have so far got to the following: INSERT INTO wp_postmeta(post_id,meta_key,meta_value ) VALUES ('1117','_yoast_wpseo_metadesc', 'Test 5') ON DUPLICATE KEY UPDATE post_id = 1117, meta_key='_yoast_wpseo_metadesc' But this just inserts a new row. So if …
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 view is done by a foreach function. In this case, the user must be able to rebook any of those past order by one click and it should send the same data back to the database as a new row …
I have a super weird Wordpress issue, there is a history of duplicated posts/pages in the database and they even show up in the Wordpress admin backend. here are the facts: on some days, seemingly arbitrarily there are hundreds of pages created that are ~almost~ exact copies of an earlier post the posts that are chosen to be duplicated are seemingly chosen at random the duplicated pages only differ from the cloned page by the ID, the post_date, the post_content, …
I've used Elementor and Elements Kit to create this website. It's accidentally generated a duplicate menu which only appears on the homepage and i'm desperate to remove it. I've tried to use additional CSS to remove it, but as both of the menus seem to be built up of identical HTML, I can't manipulate one without the other. Any help would be more than greatly appreciated, I'm beyond stressed out trying to solve this. Thank you so much!!
Setup I have a Gutenberg block (made with ACF), which lets users define certain conditions (e.g. this tag or this date, and a number) to display posts matching these conditions. E.g.: "Show newest 5 posts" or "Show posts between June 1st and June 20th with the tag 'car'". Users can create as many of these blocks as they want, I then parse the conditions into WP_Query and output the posts. Problem It can happen, though, that one or more posts …
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 comment. So I need two things... firstly allow a comment with no text input needed, and secondly, allow duplicate comments.
<?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)) { continue; // We've already seen this post ID, so skip the rest of the loop } $do_not_duplicate[] = $get_series_id; ?> <?php the_title(); ?> <?php endwhile; wp_reset_postdata(); ?> how to make duplicate post not counted ? i wanna show 20 post, but in frontpage only showing 5 post because duplicate post also counted,
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 available, so there is no duplicate content penalties from Google. How can I set this up? I was thinking of adding Add the following to your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ RewriteRule ^(/)?$ blog [L] But will that still allow the ability for administrators to …
I got some plugins that auto-generates custom fields. Does anyone know how to automatically remove empty custom fields from post when I press "publish"? A check I can put in my functions.php that does a check and removes the custom field if there is no value?
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 bit buggy), but how is it copying my posts along with its images (no hotlinking, though)? And more importantly, what can I do about it besides the abuse report that I sent to Cloudflare (which they're sending their traffic through)?
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 wp_postmeta that have the same post ID and also have an entry for the meta key cb_full_width_post Delete all records identified in step 1 that do not have meta value of nosidebar-narrow So far, I have come up with this SQL to identify posts with …
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 same post 2 or 3 times. Therefore, I'd like to avoid duplicates before they are published. I read on forums that I needed to add a XML RPC plugin. I tried this solution (Set up on Site B) XMLRPC Avoid …
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 mysite.com/page/3 Each of these are showing a post title in the SERPs like this: Page 3423 - My Site Name ... When you click the link, it is going to a specific post that SHOULD be indexing with the permalink I set (not the page number permalink above), and the …
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 boxes are untick and I ended up spending too much time ticking them. I tried you both plugins: duplicate page and duplicate posts, no luck. Any ideas?
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!