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
10 views

index.php is always displayed before any file on the URL

When I make click at any file from my website, the URL displays like: www.mywebsite.com/index.php/about-me OR www.mywebsite.com/index.php/references I just want to know if it is normal that ...
0
votes
0answers
18 views

how to use two permalinks for one custom post type

I have a custom post type "article" where posts have a permalink structure (www.mysite.com/article/post-name). I need each post in it to have two different templates according to its permalinks: the ...
0
votes
1answer
16 views

how to edit a specific post slug using a php code?

I want a php code by which i can show a modified link to the post. when using <?php get_post_permalink(); ?> it shows e.g.: (www.mysite.com/post-name-one). what i need is something like ...
0
votes
0answers
19 views

How to change post template via url?

I have a single post template (single.php) which displays the title, the abstract, tags, content etc. I made another template (abstract.php) to display only the title and the abstract of the post. ...
0
votes
0answers
8 views

Link a page type with custom WP_query variable

Basicly i want the URL : http://localhost/brands/[brand-name] to be addressed to a page template single-brandname where "[brand-name]" is a custom variable introduced in permalink. The Main Brands ...
0
votes
1answer
27 views

Custom Post Types,Permalink and Heirarchy

Basicly I want to indroduce a custom heirarchy with custom post types. I Would like it to be like this. The Main Brands URL : http://localhost/brands/ which lists different types of Brands. The ...
0
votes
1answer
20 views

Automatically remove repeated words in slug

i am looking for a way to remove repeated words in wordpress slug. let say my domain is 'example.com' and i have a category named 'WordPress How To' i have configured the permalinks to be ...
0
votes
0answers
7 views

How to add base permalink to custom posts?

I am having a hard time understanding how custom posts work. I want to achieve the following: Post: /blog360/2015/07/25/hello-world /blog360/category/programming /blog360/tag/wordpress ...
0
votes
0answers
22 views

Have a WordPress page with same title as custom post type “front” slug

I have a custom post type djs and a custom taxonomy city with two terms: boston and nyc. So a DJ can either be tagged as Boston or NYC. DJ profiles (a single djs post) are located at ...
0
votes
1answer
12 views

403 Forbidden Error on subdomain

I've got a bit a troublesome issue. In my development site installed at a subdomain http://staging.broadwayselect.com I'm getting 403 errors on all pages except my homepage. Clicking on 'Discounts' ...
3
votes
2answers
145 views

Why can't I save permalink “360” for a page?

I am trying to save my page with permalink "360" but for some reason WP keeps updating the permalink to "360-2". I have checked everywhere in my WP and there is no page or post that uses permalink ...
0
votes
1answer
10 views

cannot link a external url, present page url acting as parent url

please help some one cannot link a external link, my present page link is acting as parent link, if iam linking facebook.com , then my page url opens as www.mysite.com/facebook.com please solve it. ...
0
votes
1answer
13 views

Custom post type permalink: only use %post_id% and remove %postname%

I have created a custom post type in Wordpress which is working great. The only thing I need to solve are the permalinks created by this CTP. I currently have: ...
0
votes
0answers
11 views

Permalinks setting raises 500.0 error

We were changing our wordpress site to use pretty links, but discovered that it broke old links. We tried to revert our changes, but whenever we open up /wp-admin/options-permalink.php (and only that ...
-1
votes
0answers
14 views

Rewrite Rules for Custom Post Type Taxonomy Archive by Date

I am looking t this page here and it works pretty well for standard taxonomy archive rewrites and custom post type date archives. Archive page for custom taxonomy grouped by month How would I make ...
0
votes
1answer
31 views

Get the post permalink within the loop but without additional DB query

I am looking to create a custom 'directory' page which will link to several thousands of posts. Because of the large number I am trying to limit the number of DB queries. I notice that to link to each ...
1
vote
1answer
50 views

Adding anchor to paginate_links + Safari anchor bug

I don't quite understand how the rewriting of pagination_links() works. Here is my pagination function : $big = 999999999; $translated = __( 'Page ', 'epc' ); echo paginate_links( array( 'base' ...
0
votes
0answers
25 views

Custom Post type and Taxonomy in post URL error

I have added a custom post type and assigned taxonomy to it by following this tutorial: Custom Post Type / Taxonomy Slug / Post Title with post type archive I have two terms in custom taxonomy . ...
0
votes
0answers
11 views

Pagination of custom post type leads to 404 error

This seems to be common issue, and there exist a lot of posts about this issue but none of them works for me. I have a custom post type (portfolio) with a page pagination. $paged = ...
0
votes
0answers
29 views

How to rewrite a URL for a domain resolving to a sub-folder containing a WordPress install?

I'm having the following dilemma with WordPress: We are hosting several sites under one hosting plan (GoDaddy Deluxe Hosting) and using the "Hosted Domain" feature, which makes domains resolve to an ...
0
votes
1answer
7 views

Permalinks - Archives

The WordPress docs say: WordPress offers you the ability to create a custom URL structure for your permalinks and archives. https://codex.wordpress.org/Settings_Permalinks_Screen I see how this ...
0
votes
2answers
21 views

Permalinks - .htaccess

According to the official WordPress docs, when you save your Permalinks it updates your .htaccess file (https://codex.wordpress.org/Settings_Permalinks_Screen). However, when I make Permalink changes ...
0
votes
0answers
25 views

Custom post type archive pagination 404

EDIT. I found the culprit causing my issue. I had the following code to change the pagination slug to "sida" to reflect the site language. It works well for blog posts, but it does not work for custom ...
-1
votes
1answer
23 views

I want to filter my products with attributes [closed]

I have ebook store, where all the books are listed, everything is done.. In products, publisher and author added as a custom attributes. Now I want to filter the products on the basis of ...
0
votes
0answers
22 views

Events Manager's events-list.php uses wrong template [closed]

After switching permalinks from "Default" to "Post name", Events Manager starts somehow using blogs articles list instead of custom events-list.php template.
0
votes
1answer
22 views

How do I keep multiple domain for my wordpress site

I want category ID 1,2,3,4,5 to be DomainB.com category ID 6,7,8,9,10 DomainC.com and homepage to be DomainA.com I thought of using 302 redirect or edit htaccess, but what is the best way ...
0
votes
1answer
27 views

the_permalink displays post ID URL for future posts

I use a WP template to generate an email newsletter. I display future posts and until recently using the_permalink displayed the full human-readable URL (e.g. /this-is-a-page). Now it displays the ...
0
votes
2answers
15 views

Permalinks stopped working - NO update, mod_rewrite enabled, .htaccess not touched

At first, my permalinks and all worked. My permalinks were in /year/month/post/ format. Today I found out when I try to open an Anspress question, I get a 404. (that worked too, last time I checked) ...
0
votes
0answers
15 views

Get link in loop after redirect to page contact

i have loop in archive: <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="list"><a href="<?php the_permalink() ?>" title="<?php the_title(); ...
0
votes
1answer
44 views

optional parameter in permalink structure

Im currently facing an issue with the relationship between pretty permalink and my themes templates. I have a post type called 'performance', and with pretty permalinks enabled the URLs for the ...
0
votes
1answer
50 views

Add prefix to link url

I want to add image link on wordpress site which redirect the user to the another page of same url but with different prefix. for example page url is mydomain.com/post1234 when user click the image on ...
0
votes
0answers
23 views

Best way to change category base permalink

I am trying to change the base url for a posts category to /%category%/%postname%/, I have changed this in the permalinks and it works, but wordpress then ignore all my page links thinking they are ...
0
votes
0answers
36 views

Dynamically populate permalinks

I'm using a fairly standard permalink structure in wordpress e.g. example.com/custom-name/post-title However, I wish to prepend the 'custom-post-type' with a location name from my database. So the ...
0
votes
0answers
6 views

Support permalinks with either id or post_name

On my site, I use the default permalink format http://example.com/?p=123, where 123 is the post ID. Now, I need to import some posts from a different platform, where links look quite similar: ...
0
votes
1answer
29 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
0answers
11 views

wp_rewrite page 404

wp_rewrite gives me an 404, don't know what i'm doing wrong. function ftc_flush_rewrites() { global $wp_rewrite; $wp_rewrite->flush_rules(); } function ftc_add_rewrites() { global $wp_rewrite; ...
0
votes
0answers
11 views

whats the best practice to make specific links accessible in theme?

I have a bunch of links I need to reference in my custom theme. Since it should be flexible and the page is also translated (using WPML) hard-coded links are not an option. Right now I use registered ...
0
votes
1answer
73 views

Include language variable in url

I have been developing a language plugin for wordpress which works completely. The only thing that is missing now is the url-rewriting. I have been looking at a lot of websites, sources and other ...
0
votes
1answer
21 views

Two urls for one website

I have a customer that started his small business using an url called "firstname-lastname.ch". Since he was lucky enough to grow and now wants a proper URL, he would like to have another URL for his ...
0
votes
0answers
21 views

Pagination not working for custom category template and custom permalinks

I am using following code in category-20.php, for the pagination through ajax, which is working fine for the defaults permalinks. But when i change the permalinks to custom, then pagination doesn't ...
1
vote
1answer
26 views

Get new Wordpress slug from old wordpress slug

I have implemented a shortcode called post which contains an attribute src which has link of an of page [post src="http://www.listenmoneymatters.com/the-betterment-experiment/"] Currently, this ...
0
votes
0answers
20 views

CPT Rewrite Rules by date

I'm having issues with date categorized posts for my CPT. I have permalinks not on the default. I created a CPT with register_post_type and setup rewrite rule as follows. 'rewrite' => array( ...
0
votes
0answers
21 views

How to properly make a blog roll?

I know that there's a home.php for the blog roll. However, I've been seeing a lot of WordPress sites lately and their blog rolls are under "articles" or "writing" like "somone.com/articles" or ...
1
vote
0answers
29 views

Make Category Base Appear in Posts Permalink (but not tags)

I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And ...
0
votes
1answer
51 views

Load custom PHP on a custom URL via a plugin

I am looking into having a plugin developed that loads a PHP script (myscript.php) on a custom URL. It's very important to achieve this functionality with a plugin. Example: example.com/myscript - ...
1
vote
1answer
57 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
0
votes
0answers
15 views

Using Tag name in link to post

I have 2 Tags one is named 'The Guardian' and the other is named 'New York Times' assigned to some posts. Right now my link to those posts on my home and category page says 'Read Full Article' and ...
0
votes
0answers
9 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
0answers
28 views

Adding %subcategory% to permalink structure: either subcategory or single-post outputs 404

I've had this problem before but never actually found a solution. Let's say i have a portfolio category, a drawings subcategory and a my-new-drawing single post, which belongs to portfolio/drawings/. ...
0
votes
1answer
27 views

What is the action or filter for changing permalink in Edit Post/Page?

I know about edit_form_after_title hook but what about changing the permalink. How does WordPress creates permalink because that permalink and the one that get_the_permalink returns doesn't match? ...