A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.

learn more… | top users | synonyms (1)

0
votes
2answers
211 views

Permalink target for recent post

I am trying to set up code to submit a post to StumbleUpon, from my Rothmania site. The code reads href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php ...
0
votes
2answers
4k views

How to remove the index.php in the url?

I have installed wordpress in a subdirectory (blog). In the root directory I have installed Magento. Now the file directory is as following: app downloader includes media .... blog/wp-admin My ...
0
votes
2answers
84 views

How to get the permanent link in a plugin?

I'm writing a plugin to add some extra contents that contain the permanent link to the (single) post. function abcd_add_contents($content) { $extra_content = the_permalink(); if ...
0
votes
2answers
2k views

Custom Permalinks for Custom post Type Archives?

I know that WP 3.1 has added support for archives for custom post types but is there any way to customize the permalinks for them?
0
votes
2answers
2k views

mod-rewrite exception? keep #hash in matching urls?

Hey guys, My WordPress permalink structure is set to `/%postname%/. When I create a page with a name "FAQs" the permalink generated is "mydomain.com/faqs". When I link to this page in my code ...
0
votes
2answers
1k views

Permalink opens attachment instead of page

I recently moved a blog from one host to another and now have a problem with a permalink - rather than opening up a page, it now opens an attachment. The blog is using WP 3.0.4, running on PHP 5 and ...
0
votes
2answers
1k views

Remove permalink for custom post type

I have multiple custom post types and custom taxonomies, "staff", "games", which have the permalinks: domain.com/staff/%staff-name% domain.com/games/%game-name% However, I'm only using these custom ...
0
votes
2answers
601 views

Permalink Problems

From the WordPress support forums: Hi, this is my website http://www.mp3ojax.com. I want to insert permalinks on the images on main page This is the code: <a href="<?php ...
0
votes
1answer
33 views

What causes /pages/ to appear in URI, and how to remove it?

I have a WordPress site I am working on, in which /pages/ appears in the URI for all Pages. For example, www.site.com/pages/contact-us/ I am stumped as to why this is occurring, it doesn't occur on ...
0
votes
1answer
121 views

Rewrite url without flushing the database?

Is it possible to create a rewrite in WP dynamically such that no flushing is required? For example, not storing the rewrite in the database but rather defined in my plugin code?
0
votes
1answer
43 views

WordPress Permalink feature alternative

I'm trying to prefix my permalinks for some backend logic to emulate posts on Multisite. I have used the post_link filter but unfortunately it didn't meet my needs as it doesn't prefix the permalink ...
0
votes
2answers
130 views

Change Buddypress Admin Profile Page Permalink

Does anybody know how to change the default admin profile permalink in Buddypress which is: domain.com/members/admin/ to this: domain.com/members/MyUserName/ I tried to change my name and it doesn't ...
0
votes
3answers
1k views

URL rewrite and navigation structure for wordpress custom post type

I have created the following custom post types: Artists Albums Songs Songs are children of Albums, Albums are children of Artists. I am trying to set up a navigation structure that shows this ...
0
votes
1answer
40 views

Best way to specify “article type” in URL

I'm helping a small blog out that posts a few different "types" of articles. These article types are shared across categories. We want to put the article type in the URL. So the structure would look ...
0
votes
1answer
416 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
0
votes
4answers
551 views

I copied my site to another site but all links point to old site

I copied my site: www.old_site.com to a new address: www.new_site.com All links in new_site point to the old site. What do I have to change so that new site points to new site? Thank you.
0
votes
1answer
119 views

How can I emulate permalink behaviour on static pages

I am working on a Wordpress site which is displaying results from an Events API on a given page. the page is at /whats-on. I want to provide links on the page which are formatted like ...
0
votes
2answers
189 views

Template files for Custom Post Type and Taxonomy

I've got a custom post type called "properties" and two custom taxonomies called "type" (office space, retail space, etc.) and "location" (new york, chicago, etc.). I have created ...
0
votes
1answer
570 views

Redirect single article permalink to paginated category page

Is it possible to redirect from a permalink (a single article) to that same post in a relevant category page, which might be paginated? So when people visit http://domain/post_number they get ...
0
votes
2answers
2k views

How to Create Template File for Parent Page of Custom Post Type

After creating a custom post type I made a custom template file for the post (single-customposttypename.php). So the URL structure would be: example.com/page/postname, and postname would be the post ...
0
votes
1answer
676 views

How to get Next/previous_post_link to go through articles in top parent category

I have a magazine format where a parent category is an issue, sub categories are the sections and the articles go into their respective sections. When viewing an article in a magazine, I would like to ...
0
votes
1answer
947 views

add_query_vars and canonical links

I have two pages, one called cities and the other called states. They use the add_query_vars function to grab the city and or state from a database. The pages load fine. For example when someone goes ...
0
votes
1answer
946 views

Rewriting search permalink

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
0
votes
2answers
275 views

How do I reclaim either deleted pages or their permalinks?

A client deleted the the main administrator account. All the site’s core pages linked to the account, so they disappeared as well. The last known backup was in February, so can’t roll the database ...
0
votes
2answers
46 views

Changing the permlink and SEO

I have a doubt on changing my permlink structure for the second time. What happened was I have moved my old website to the wordpress blog by copying all the posts. After the migration, i have set ...
0
votes
3answers
2k views

How do you create %post_type%/%postname%/ permalink structure?

How do you create %post_type%/%postname%/ permalink structure? This is what is not working: eg. ( domain.com/blog/ ) -> "click on post" -> ( domain.com/post-name ) How do I make "blog post" ...
0
votes
1answer
45 views

Format HTTP links

I have a custom page template creating an xml feed found on a WP page at http://example.com/xml/ I am trying to access this xml document via Google Maps but it appears I need the actual file name ...
0
votes
3answers
1k views

Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard

I have a custom "about" post: function about_register() { $labels = array( 'name' => _x('About Page', 'post type general name'), 'singular_name' => _x('About ...
0
votes
3answers
358 views

How do I get thumbnail generator to recognize the_permalink tag?

Help! I am trying to create a Digg-clone by integrating "BM Shots" (a webpage thumbnail generator) with "Recommended Links" (a social voting plug-in for Wordpress). Recommended Links allows for user ...
0
votes
1answer
188 views

Hide the word 'category' from my permalinks

How can I hide the word 'category' from my permalinks? Regards.
0
votes
2answers
326 views

Changed permalink structure of CPT - should I redirect?

Following this answer, I recently changed the permalink structure of a custom post type called 'Literature' to include the taxonomy term: Old structure: mysite.com/literature/books/post_name New ...
0
votes
1answer
1k views

Custom JSON feed rewrite

I'm trying to implement a feed of information from an Event custom post type in JSON format, to be used in a FullCalendar implementation, pretty much as described here. The one thing I wanted to ...
0
votes
2answers
5k views

Permalinks on post is working, on pages 404 error

I am having troublle with setting my permalink in wordpress site. I changed the permalink from default to custome : %postname%. In this case my posts are working perfectly, but the pages are not. ...
0
votes
1answer
191 views

url rewrite .htaccess extension to permalink

I have a custom page and template, that I'm passing a query-string to. It has a wordpress permalink like so /mypage/ I want to be able to add another rule so that the permalink receives a slug ...
0
votes
1answer
503 views

Should I use relative or absolute urls when pointing to internal pages

This is a simple question, that's probably been asked before. For internal links between pages, is it better to use a relative link or full permalink? Thank you.
0
votes
1answer
1k views

How to test custom rewrite rules /permalinks?

After much research, I think I can wrap my brain around WP's rewrite system. I would like to know, though, how to properly test rewrite rules to see if the right rule/tags is being used and the right ...
0
votes
1answer
412 views

Permalink of a page that has already been deleted

I had a page.. and I by mistake added another one, so the permalink got appended by "-2" at the end. I had to delete one of the pages, so I happened to delete the one without the -2 attached. Now I'm ...
0
votes
2answers
2k views

Query custom taxonomy by term id?

I made a custom post type and a custom taxonomy, but I have a problem. When I access the url http://www.ithemes.co.kr/?shopcat=galaxy-s, it works well. But when I access the url ...
0
votes
1answer
393 views

How to remove .html from admin

I am using plugin you can see plugin http://wordpress.org/extend/plugins/html-on-pages/ After activating this plugin it add .html at the end of page permalink. WE can see this .html extension ...
0
votes
3answers
273 views

Internal linking when on a shared IP

I have a WP site in a temporary location, and the site URL is an IP address followed by slash, tilde and the short site name. I also have a number of internal links in the pages that assume linking ...
0
votes
1answer
145 views

Create a url structure for my blogs based on categories and sub-cats

My blog design heavily relies on categories and sub-categories. I would like the url structure to be dependent on that. How can I make the url's support the same? I would like it to be like: ...
0
votes
3answers
1k views

Change Permalinks Structure to a Sequential Number for Each Post?

I've just created a draft on my blog, and it's post ID is 1. After creating another draft, the post id for this last post is 3! I was hoping to see them in sequential order, so in the future I'll have ...
0
votes
1answer
45 views

add_rewrite_rule with bottom priority doesn't handle the Wordpress pages

I have a php file named test.php that outputs the page querystring parameter. I want to use add_rewrite_rule to serve my php file, while the WordPress pages which exist already or will be created ...
0
votes
1answer
25 views

Media items hogging pretty permalinks

I have a WordPress installation setup but I'm having trouble with items uploaded to the media library taking up pretty permalinks. The only way to fix it that I've figured out so far is to delete the ...
0
votes
2answers
29 views

Create page as a file in my theme?

Is it possible to create a single page by just adding a php file inside my theme and add header and footer to it? Yes, I know, this page will not be able to administrate through WP Admin. I have ...
0
votes
1answer
47 views

Custom Permalinks with meta value not working. Why?

The following code is supposed to work, but it does not (no Plugins activated). In the backend the permalinks are correctly shown for the custom post type, but if called in the frontend an incorrect ...
0
votes
1answer
120 views

Custom Post Type pages are “not found”

I've created two new Custom Post types using code that I've used successfully on other projects without issue. The first is called top_charts, the other case_studies, and both appear correctly in the ...
0
votes
2answers
197 views

How to solve this custom post type goes to 404 page?

I have a custom post type called dramas /******* DRAMAS BEGIN *****************************************/ register_post_type('dramas', array( 'label' => 'Dramas', 'show_ui' => true, ...
0
votes
2answers
126 views

Move Wordpress to subdirectory, keep ALL URLs

I currently have a website at site.com and have WordPress installed in me website's root folder. My website includes pages like: site.com site.com/page site.com/2015/10/01/post.... site.com/login ...
0
votes
1answer
46 views

How Do I get the author's page id?

I need to assign comments a user makes to the author's page where the user is posting the comment. So, I need to get the author's page id. I have already tried functions like: url_to_postid() and ...