Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
650 views

What is the proper use of guid for images in wp_posts?

I understand that guid is a unique reference for a post, whether that post is a post or an attachment. When it's a post, I think guid is self-evident. But what is the correct formulation/destination ...
Robert Andrews's user avatar
-1 votes
1 answer
72 views

Post object GUID adding http:/

In my template I have href="'.$package_link->guid.'" The resulting HTML is: href="http:/package/download-2023-friday-arrival-monday-departure-weekend-coach-festival-ticket/" Why ...
pee2pee's user avatar
  • 141
0 votes
0 answers
645 views

I need to change the attribute of the isPermaLink guid in the Wordpress RSS feed - from false to true

I need to change the attribute of the isPermaLink guid in the Wordpress RSS feed - from false to true. <guid isPermaLink="false"></guid> What's the best way to do this without ...
Leandro C.'s user avatar
0 votes
0 answers
211 views

how to Update guid = "text"+post_name?

in phpmyadmin, i use this SQL command to update all posts that have guid like '%/?p=%' = "https:/bkfast.vn/"+post_name update lgs_posts set guid='https://bkfast.vn'&'post_name' where ...
VietKim's user avatar
1 vote
0 answers
245 views

What is the difference between these GUID's in wordpress feed?

My RSS feed currently contains generated post GUIDs URLs that use the post slug: <guid isPermaLink="false">https://sitename.com/postname/</guid> However I want to use the ?p=...
Shivani Shukla's user avatar
4 votes
3 answers
9k views

Change old URLs after the domain change

I have setup wordpress on my server, and after some time I've changed the domain name of the installation. However, all of the old urls within the site point to the old domain. How can I change old ...
Gitnik's user avatar
  • 169
1 vote
0 answers
219 views

I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?

I realise comparing this particular website with all the other WP sites I've built that all the others have the image url in the guid column of the wp_posts table, yet this problem site just has "guid"...
AdamJones's user avatar
  • 328
0 votes
1 answer
35 views

Is it safe to add a new field to meta_value field?

I'm trying to offload Wordpress images from my web server. I've successfully moved everything over to Amazon AWS and have a syncing mechanism in place that uploads new images to AWS. Now I would like ...
bart's user avatar
  • 225
2 votes
0 answers
18 views

How to introduce Permalinks into pop-u-lar widget?

I am using the pop-u-lar widget on my blog, which is linking to the selected posts by their "guid"s. However, the site itself is using human-readable links instead and I want the widget to do the same....
Php_Nuub's user avatar
2 votes
0 answers
661 views

Add guid filter to attachment in media library grid mode

I'm trying to show in media modal box, attachments from a specific folder in my website and, correct me if I'm wrong, the best way to proceed is a like filter on wp_posts field GUID. Something like ...
user114036's user avatar
0 votes
1 answer
78 views

Custom permalink for each post

im importing data from Drupal to WP. I have more than 10 000 posts. Each post have ID, category and slug. For example: Category> important ID> 11111 Slug> hello-world I need to keep permalinks ...
Bullman's user avatar
  • 161
0 votes
1 answer
56 views

Creating posts from API data, how to identify posts already imported?

As the title says, I'm using an API to fetch some data which is used to create CPT posts, and need to identify items returned from the API which have already been inserted as posts. The API returns ...
numbers1311407's user avatar
0 votes
1 answer
133 views

Moving WordPress Directory (same domain) - GUID issue?

I have a WordPress installation on a directory within my domain. So, it is like this: www.example.com/blog/ WordPress is placed in /blog/ I'd like to move the WordPress installation Blog Posts back ...
Henry's user avatar
  • 983
1 vote
0 answers
5k views

Set Attachment Image File URL as GUID

I have a form that uploads images and i want to update the GUID to be the attachment file url after WP generates the metadata. I tried to use wp_update_post, but seems that is not updating the guid. ...
John Priestakos's user avatar
10 votes
6 answers
41k views

How to change all the guid in posts table?

Recently I have transferred my WordPress from development server to live server. I noticed that I have to change all the "guid" with live domain url. Is there any mysql query or simple function ...
Kvvaradha's user avatar
  • 936
0 votes
0 answers
198 views

How to identifty post from its URL in 404 page?

Why GUID is such unstable? Some of the post's GUID are pretty permalinked, but most of them are default. I's using Pippin's function to get the post_id from its GUID, but it's not working if my site ...
Mayeenul Islam's user avatar
0 votes
0 answers
414 views

GUID to related post not in current language

I'm having problems with related posts and the link to them. I'm using the plugin Posts 2 Posts to create connections between posts. I also have three languages in wordpress website (french, english,...
nielsv's user avatar
  • 173
0 votes
1 answer
78 views

Are there some caveats for using guids for FB comments

I'm using Facebook comments box and just realized that when we use <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="5"></div> and then ...
jimihenrik's user avatar
0 votes
1 answer
51 views

Is it risky if I update all url in the database due to my site url changed?

Let's say I have a wordpress site on a subdomain. Initially, I created the site with "www." >>> www.mysite.mainsite.com Now, I'd like to change site url to only mysite.mainsite.com without www ...
Atthapon Junpun-eak's user avatar
0 votes
1 answer
390 views

GUID URL Question

I had a website that needed to be re-done, so I hosted a new dev site (not locally) with a temporary domain. The dev/new site was completed and I then moved the domain from the old site to the dev/new ...
user47339's user avatar
1 vote
1 answer
193 views

Why is it bad to use the GUID?

I recently upgraded my WP version from 3.2.x to 3.5.x. In the process, the WP functions that retrieve images (wp_get_attachment_image_src, get_the_post_thumbnail, etc) are now broken. I had to change ...
bigpotato's user avatar
  • 335
5 votes
1 answer
14k views

wp_posts - guid update

Hello and please excuse if this has been answered before but we really need to make sure. We have developed a website under a domain of ours and then moved it to the live site of the client. We have ...
user28695's user avatar
0 votes
4 answers
182 views

problem with guid, when i change the folder name

I'm new to WordPress. I started the site as good with folder name wordpress. After I changed the folder name from wordpress to test. And also change the siteurl from http://localhost/wordpress to http:...
KarSho's user avatar
  • 686
0 votes
1 answer
4k views

Inserting post_id into guid before wp_insert_post

I would like to insert data into the wp_posts table with the inserted post_id in the 'guid' for a record that doesn't already exist. Below is the closest I've gotten but this doesn't work ($postarr['...
Aori Nevo's user avatar
2 votes
2 answers
921 views

One reason for changing the GUID

I create product custom posts from an external data suscription, populating some custom fields and displaying product specifications automatically. As there are a lot of these products, the manual ...
antorome's user avatar
0 votes
1 answer
282 views

GUID not updated on import

I've exported data from my dev server and imported it to my prod server. One template is listing child pages and uses $page->guid to get link to page. The problem is that this link still points to ...
Steven's user avatar
  • 2,620
14 votes
1 answer
5k views

Moving WP install from local to live, what about wp_posts GUID?

Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost But at wordpress.org documentation it clearly states: Never, ever, ...
alex's user avatar
  • 1,112
1 vote
1 answer
138 views

media 'path' issue / concern when bringing files live

I'm currently developing a site we have installed on a sub-domain. 'beta.mysite.com' We will eventually, be moving site to it's root domain. 'www.mysite.com' Problem? any post type attachment / the ...
Michel Joanisse's user avatar
0 votes
2 answers
2k views

Change custom post type GUID in RSS

So i got the RSS feed which output some custom post types, but the GUID looks bad to me, it's like: ?post_type=mycustompost&p=124 The reason i want to change this is that I don't need people to ...
Alex K's user avatar
  • 103
0 votes
1 answer
2k views

GUID field in wp_posts - relevance for attachments?

How significant is the guid field in wp_posts? I'm doing a migration and adding a lot of images to the table (via wp_insert_attachment, wp_generate_attachment_metadata and ...
anu's user avatar
  • 9,562
0 votes
2 answers
3k views

Importing Direct to DB - GUID Question

I've got a CSV file of new posts which I'll be importing straight into the database. Is it safe to give a GUID of http://domain/?p=[n] where [n] is any number, as long as it's not a duplicate of an ...
user avatar
2 votes
2 answers
2k views

Duplicate Posts using Feedwordpress

Feedwordpress has an issue with creating duplicate posts. This duplication does not happen predictably, however, so it is hard to debug it. I need to be able to reproduce duplicating posts before I ...
user avatar
8 votes
4 answers
15k views

Problem with guids and absolute links

Post and page guids include the full absolute URL of my site (e.g. http://www.example.com/wordpress/?p=1). This causes a problem if the domain, or wordpress path changes, or if I'm viewing the site ...
Bobby Jack's user avatar
  • 1,252