Stack Exchange Network

Stack Exchange network consists of 174 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 tag has no usage guidance.

1
vote
3answers
89 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 ...
1
vote
0answers
19 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"...
0
votes
0answers
17 views

Permalink issue. Cant name page slug 83 because it was taken by a 'nav_menu_item'

I'm working on a site where one of the pages slug urls is domain.com/subpage/83 I am trying to recreate this in their new wp instance and it keeps changing the name to domain.com/subpage/83-2/ I ...
0
votes
0answers
12 views

How to prevent wp_posts table to save guid without domain name?

In WordPress we have wp_posts table in which guid is stored as 'http://mydomaindotcom/?p=1' or something similar to that but for some reason I want it to be stored as '/?p=1'. How am I supposed to do ...
0
votes
1answer
22 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 ...
3
votes
0answers
13 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....
1
vote
0answers
279 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 ...
0
votes
1answer
43 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
72 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 ...
1
vote
0answers
3k 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. ...
1
vote
3answers
9k 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 ...
0
votes
0answers
96 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 ...
0
votes
0answers
238 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,...
0
votes
1answer
73 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 ...
0
votes
1answer
36 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 ...
0
votes
1answer
185 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 ...
1
vote
1answer
130 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 ...
3
votes
1answer
10k 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 ...
0
votes
4answers
132 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:...
0
votes
1answer
2k 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['...
2
votes
2answers
606 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 ...
0
votes
1answer
175 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 ...
11
votes
1answer
4k 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 http://codex.wordpress.org/Changing_The_Site_URL ...
1
vote
1answer
126 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
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 ...
0
votes
2answers
2k 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 ...
2
votes
2answers
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 ...
8
votes
4answers
8k 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 ...