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
1answer
134 views

Best way to add internal link in widget

I'm looking for a way to transform a static piece of code into a widget to display in different sidebars containing a simple internal link. The basic code is: <div class="my-link-box"> <a ...
0
votes
1answer
60 views

Permalinks with custom taxonomies and regular categories

I have created a few custom taxonmies in Wordpress (e.g. author, book, comic..). I also have a few categories using the built-in category system (e.g. news, review,...). I try to get a permalink ...
0
votes
1answer
47 views

Change type of permalinks on TinyMCE link dialogue

I recently ran into a problem when inserting text links into post content, and then updating the target post's slug or changing permalink options - the link in the post content won't get updated. ...
0
votes
1answer
248 views

Custom Structure permalinks error 404

i have changed the wordpress custom structure permalink to /%post_id%/%postname%/ and get this error : 404 Not Found The requested URL /mysite/blog/1/hello-world/ was not found on this server. ...
0
votes
1answer
65 views

What is the right way to clean up $title before wp_insert_post?

I am using a function to insert some post data and i am having problems with the title/title - slug. The title is random selected from an array, some title have ?, ! or . (dots) I notice ...
0
votes
2answers
51 views

Wordpress page/blog incorporated into static website

Currently, I have a static website. I wanted to know how I could go about replacing one of the static pages with a WordPress page that will function as the websites blog? I know how to create a ...
0
votes
1answer
217 views

Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?

Question updated. What I'm trying to do If I want to display posts (or a feed of posts) that belong to a category AND a custom taxonomy, or a category AND a tag, or a custom taxonomy AND a tag, I ...
0
votes
1answer
35 views

Under What Conditions Can I name my CPT the same as my CPT Page?

The story goes that you cannot have by default the same CPT slug as the page you need to create for your CPT. On a few occasions I've been able to do just that though and have it work just fine. For ...
0
votes
1answer
255 views

Edit permalink for old posts and not show on top of RSS feed

I have edited permalinks for old posts (slug) After changing slug the posts appear on the top in RSS feed in some services. But I don't want to get this posts on top, I want just to edit slug. It ...
0
votes
1answer
186 views

Allow dot in wordpress permalinks (only for categories)

I'm using domain names as category. For instance I have category name google.com But wordpress converts dot with hyphen in permalinks. Can someone tell me how to allow dot in category permalink?
0
votes
1answer
44 views

Using page title as a link to term archive

i want to do something like that (pay attention to line 4): $term_link = get_term_link( $term, 'genre1' ); if( is_wp_error( $term_link ) ) continue; echo '<li><a href="' . $term_link . ...
0
votes
1answer
18 views

How to get links to user and tag by its name?

For example i have the name of user or the name of tag. Is it possible to get direct link to the author or tag? I need something like get_permalink for posts.
0
votes
1answer
671 views

Adding an extra parameter [string] to my posts' permalink?

I've been searching the internet for 6 hours now, so I decided to ask this in the forum and would appreciate every help. I just want my permalink to say (e.g. portfolio, post, etc) ...
0
votes
1answer
45 views

Custom post type 404 error on “default” or “numeric” permalinks

I wrote a plugin for WP.org that uses a custom post type with the slug "reading-list" and I cannot view mysite.com/reading-list/ when I have either the "default" or "numeric" permalinks setting in ...
0
votes
1answer
286 views

Permalink/Pagination issue: Category base name same as page name

I currently have a page called "Blog" (slug "blog"), which loads a index.php. All posts in index.php belong to only one post category. A sidebar on index.php contains category links (via ...
0
votes
1answer
58 views

Query Custom Posts - Add To Selection

Which I have working, but not correctly. When I add this metabox to my page it messes up the permalink to always display the slug of one of the organization post types. When I remove this metabox the ...
0
votes
1answer
584 views

problem with pagination in custom permalinks

I have set custom permalinks: /%category%/%year%/%monthnum%/%day%/%postname%/ When I use the following url: http://revelutions.com/sandbox/one/2013/08/30/ works fine. However, when I click on the ...
0
votes
1answer
215 views

Problem the_permalink

Morning everyone, I'm sorry to disturb, but I need help if possible. The code below I need to publish part of the contents of some pages. Firstly I have a problem with "the_permalink" despite write ...
0
votes
1answer
60 views

How should I add links to other pages/posts from my post?

I'm wondering how should I link to other posts from one of my posts. Ideally I would use a function like get_permalink() but php is not available in post content, so how can I link to other pages ...
0
votes
2answers
649 views

get the_title_attribute by id

I'm creating a list with a few permalinks which I call to with <a href="<?php echo get_permalink($id); ?>" title=".... And for the title I want to call the_title_attribute(). But it seems it ...
0
votes
3answers
406 views

make permalink go to a custom single.php file

hope somebody can help me with this because I am struggling for a while. I want to use two single.php on my website, one to display the regular posts and another to display some products that I will ...
0
votes
1answer
93 views

How to add post meta to post permalink with still keeping a good performance?

the following problem - I want to completly change my post permalink structure to be like this: www.example.com/%post_id%/%post_meta_value1%-%post_meta_value2%-.... It would even be more nice to ...
0
votes
1answer
272 views

Confusion about how a URL is being parsed

I have a permalink that leads to some custom content like: http://mysite.com/extra-deal/91103/ That will take you to a page that is handled by the file: category-extra-deals.php On that page I ...
0
votes
2answers
167 views

stripping tags from excerpt in Wordpress is not working

I am using this snippet <a href='<?php the_permalink() ?>' title='<?php echo strip_tags(the_excerpt()); ?> with which I am intending to remove all ellipses, <p> tags and other ...
0
votes
2answers
266 views

Post titles and thumbnails as links to custom post types?

I am struggling with the php structure. How do I need to rewrite the code to get the links to the titles and thumbnails of the custom posts? <ul class="thumbnails"> <?php $pfportfolio = ...
0
votes
3answers
444 views

Force Wordpress to Show Pages Instead of Category

I am trying to create a SILO structure on one of my WordPress site. I have always checked this option on Yoast SEO plugin "Strip the category base (usually /category/) from the category URL." So my ...
0
votes
1answer
498 views

add_query_arg() for custom post type on all visible links

I am trying to add add_query_art() $GET['var'] to auto filled form field. I have custom post type call career and want to auto filled field for the Position so url I want is ...
0
votes
1answer
312 views

How to add nofollow on all external links without plugin?

I have tried many plugins, which are doing the thing I want, but they are blocking my other plugins (1 in particular, which is indispensable for my site). Anyhow; how can I add a nofollow on all my ...
0
votes
1answer
159 views

WordPress Permalinks %postname% for RSS2 Feed URL

One of my client is developing a SmartPhone Apps with the WordPress site I've made for them. The site is of a daily newspaper's online version. All the news are sorted by different categories. So the ...
0
votes
2answers
120 views

home_url on IIS missing permalink index.php

I'm using IIS without any URL re-writing that include an index.php at the end. The custom permalink structure is: /index.php/%year%/%monthnum%/%postname%/ The problem is that the home_url function ...
0
votes
2answers
29 views

Access posts while mod_rewrite is broken

On my wordpress installation mod_rewrite (e.g. the permalinks) is temporarily broken. For debugging I want to access the formerly "prettified" page mydomain.tld/page/2. What is the old GET parameter ...
0
votes
1answer
31 views

Problem by $output and permalinks

I have a problem by $output in a plugin in My custom Template, I do it this: $output .= "<h2><a href='".the_permalink()."' title='" .printf( esc_attr__( 'Permalink to %s', 'twentyten' ), ...
0
votes
1answer
97 views

Internal linking to posts permalink fail because of spaces and stripe at postname

I have written a function which outputs a tag in a textarea in which people can link internally to other posts on the website. This works like a charm except with using a postname permalink ...
0
votes
2answers
35 views

Pages not using permalink

I recently changed my theme from one custom theme to another custom theme. There were previously pages that used template files (i.e., "Blog" page uses Blog template) and now that I've changed themes ...
0
votes
1answer
105 views

Update the permalinks in posts (not domain change)

A group that I joined created a wordpress site before I joined. they did not set up permalinks for the site. So when I took over maintaining the site, I been optimizing the site both for SEO and ...
0
votes
1answer
209 views

Changing the post date without causing 404 error

We have permalink structure based on date (like 'www.mysite/2012/05/27/postname'). Some times there are some posts that we need to be shown the first, so we change they date. The problem is, that by ...
0
votes
1answer
175 views

how to set up wp in folder within static website?

In my server I have the following file structure: www/ index.html js/.. css/.. img/.. index.html ... blog/ .htaccess index.php wordpress/ .htaccess wp-config.php ...
0
votes
1answer
124 views

Enable Minify in W3Total Cache using NGINX [closed]

I am having an issue with enabling minify with the W3TC plugin. I am using a LEMP stack and cloudfront as a CDN, and all of these features, except for the minify work fine. In order to enable fancy ...
0
votes
1answer
1k views

Permalinks by Post Name Are Not Working

My WordPress Project is hosted on fatcow. The Post Name permalinks, are not working, but the Default permalink setting does work. There are many options in google, but I didn't find a simple way to ...
0
votes
1answer
126 views

“set_front” => false on custom post type breaks wp_list_categories links [closed]

My question is related to this one. I would like my post permalinks to be prefixed by /blog/, but I don't want this prefix to be applied to my custom post type portfolio. In other words, I expect post ...
0
votes
1answer
85 views

Issues when changing permalink Structure

I wanted to change the slug of the portfolio of my page, it is actually /portfolio-item/ i went to my custom_post_types.php file and changed the rewrite rule of the slug to my needs, but when i flush ...
0
votes
1answer
831 views

Custom Post Type nest under a normal WordPress Page

EDIT Again, nope it's not impossible, just nasty. Solution below. Trying very hard to get this working. Have tried numerous suggestions here on stackexchange/overflow My goals are to simply select ...
0
votes
2answers
81 views

How to embed a new string in url?

I am creating a custom tours and travel theme in which I have created custom post type Cities, Locations, Destinations and i am using custom permalink structure. /%category%/%postname%/ So now I want ...
0
votes
1answer
33 views

What is the simplest way to create a redirect

If I have a custom post type called Drink which has permalinks like /drink/pepsi/ then /drink/ will list all of the Drinks. How can I rewrite /drink/ to /drinks/? I want permalinks for single Drinks ...
0
votes
1answer
50 views

Customizing a permalink

Good Day All I have a featured slider on the home page that can call a category from which it gets its featured content. Now, for each featured slider, I made a post with category 'featured'. Now the ...
0
votes
1answer
550 views

Permalinks for single-[custom-post-types] not working

I've been reading a lot about my simple issue, but wasn't able to find the simple answer, so, please excuse my noobieness. I have a custom post type registered in functions.php, like so: <?php ...
0
votes
2answers
94 views

Link post images to post

For some reason I can not find any good solution to making the post images link to the post. I found a script on http://wpguy.com/plugins/linked-image/ which works - but does not remove the old link, ...
0
votes
1answer
292 views

Custom post type category permalinks and archive pages

I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup: Custom Post Type: ...
0
votes
1answer
165 views

Advanced permalinks structure

I would like to get this: mysite.com/category/tag/ example: mysite.com/news/sports/ News is a CATEGORY and sports is a TAG How can I do it? Thanks.
0
votes
1answer
50 views

Permalinks that go to a specific template

This is actually my first question here, so hello to everybody in this community! I have developed a theme with a custom post type and a template (lets call it "my_template.php") that shows posts of ...