Tagged Questions

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
0answers
13 views

Custom post type empty slug breaks permalinks for pages

In attempt to avoid posting a ticket to essentially reopen #15082 I'm posing here first. I have been vigorously dealing with this CPT permalink rewrite for countless hours now. After a 3am kinda night ...
0
votes
0answers
22 views

Custom Page Taxonomy - 404 errors all over the place

I keep looking at the same few lines of PHP over and over again, and I can't make heads or tails out of why the 404 errors are happening. Here are the lines: add_action( 'init', ...
0
votes
0answers
9 views

two permalinks for the same post

Do you know a way of having two permalinks for the same post? I have post with an hebrew slug and i want to have the same result with an english slug i'll give it.
0
votes
0answers
25 views

Page Type with Category Link

I have a custom-page type "page-clients.php" which loads category of "clients". Example: http://website.com/clients (all clients-working) Example: http://website.com/clients/9 (sub category ...
0
votes
0answers
10 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
1
vote
1answer
29 views
+50

Change in permalink structure made javascript cookie not work correctly

My site needs a mechanism where a user is sent to agreement page when he visits the site for the first time. Once he accepts the agreement, it is saved in cookie. He can browse any page directly after ...
1
vote
0answers
12 views

Base permalink for custom taxonomy

I'm using custom hierarchical taxonomy that is attached to custom post with following structure: www.mysite.com/movies/drama/example/ where "movies" is a slug for custom taxonomy and "drama" is an ...
0
votes
0answers
8 views

Lightbox and add_rewrite_endpoint

I have the following code for custom URLs: function wpa_gallery_endpoint(){ add_rewrite_endpoint( 'gallery', EP_PERMALINK ); add_rewrite_endpoint( 'photos', EP_PERMALINK ); } add_action( ...
0
votes
0answers
8 views

Issue with pagination() get_pagenum_link() and language permalinks

I'm quite new to Wordpress and php. I managed to put up a site running on three languages with a plugin called "qTransalte" and a theme that had blog posts, slide posts, portfolio posts and highlight ...
0
votes
0answers
17 views

get_tag_link returns all posts

I recently changed my permalink structure from 'default' to 'day and time' and as a result my index page has stopped working. Before it would return only the posts with the relevant tag but now it ...
0
votes
0answers
19 views

Prevent guessing slug

I have the following rewrite rule function add_rewrite_rules($rules) { $new_rules = array( 'buscador-latte/(.*)/?$' => 'index.php?page_id=866&search_parameters=$matches[1]', ); ...
0
votes
0answers
7 views

Bad attachment links (starting with “../wp-content/uploads”)

For some reason, WordPress is generating attachment images with bad links (beginning with a relative call, which breaks with prettified URLs). The links begin with "../wp-content" - and I can't figure ...
0
votes
1answer
21 views

Define a Permalink Structure by Post and Page

All, I have a post that works fine with a permalink setup. However, I also have a page called gallery. What I would each post can have a page. So for example I have a post named business-name so my ...
0
votes
1answer
18 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
-3
votes
0answers
12 views

update all post_name after change parmalink [on hold]

I change permalinks i my web site , and i have error that when any one open my old link of article , he is see not found. How can i solve this error
0
votes
1answer
35 views

Big arabic permalinks not work

I have error in permalink, I have post that title is big like :- مراجعة : Sony Xperia Z2 و إيجابياته و سلبياته و كل ما تريد معرفته عن الجهاز ! Now when open the post in my site i see permalink like ...
0
votes
1answer
27 views

Issue on Getting Custom post type Thumbnail's URL

I need to get the URL for Custom post type Thumbnail and assign it to the_post_thumbnail('', array('class' => 'group1 img-responsive', 'href' ...
0
votes
0answers
11 views

Custom Post Type Taxonomy question [duplicate]

I am currently working on a WordPress site and I'm using a custom post type named 'project'. The URL leading to this CPT is localhost:8888/wordpress/project. The problem I have here is that that page ...
3
votes
1answer
152 views

Wordpress homepage loads but all permalinks are 404 when using nginx & PHP-FPM

I have been trying to resolve an odd problem with my nginx config, which seems to have stopped working shortly after applying a Debian backports upgrade. The landing page of my blog ...
0
votes
1answer
22 views

I Need to use Month , year in my all archives and pages of my wordpress site

I need to have month/year in all my pages in my wordpress site . For example : If that the page title is " Online exams " I need to have it like " October 2014 online exams" . I have around 10-12 ...
0
votes
0answers
12 views

use root url for every permanent link in permalink structure

I would like to redirect each "view post" or similar button in the backend to the root Page. I now just entered a / in the custom structure of permalinks. Could this give me any issues, with e.g. ...
1
vote
1answer
22 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...
0
votes
0answers
23 views

Custom Post Type rewrite permalink

I am trying to rewrite permalinks for my custom post type. The structure I look is: /%custom_post_type%/%custom_taxonomy%/%date%/%postname% Any ideas how can I achieve that?
0
votes
0answers
21 views

Pretty permalinks for subdomain installation

Currently, the only way my posts will appear is if I have Permalink settings set to "Default". I would like to set them to "Post name". When it's set to "Post name," I get a 404 not found error. My ...
0
votes
1answer
18 views

Check if excerpt is empty at loop-portfolio

I want to check if excerpt is not empty, then echo the excerpt link, if not the echo permalink, like this: if(the_excerpt()!='') echo the_excerpt(); else echo get_permalink() but how can I check if ...
0
votes
2answers
52 views

Permalinks when using Custom Post Type with static page for archive

I have created a custom post type called "portfolio" and I use a static page to list my portfolio posts because I need to add content using the content editor. My problem is that I would like this ...
0
votes
0answers
6 views

mod_rewrite issue

I am having problems all of a sudden with images not displaying. If I deactivate mod-rewite in .htaccess then images come back but I can no longer access post page permalinks having to resort back to ...
0
votes
1answer
23 views

Enabling permalinks disables custom page template

I have assigned a custom template on a page in wordpress, but it's not working anymore after I enable permalinks. Instead of the custom template, the "post-type-archive-portfolio" template is used. ...
0
votes
1answer
52 views

Bulk update post slugs through database

Is there a way to bulk update permalinks through the database? cause I have like 20k posts and all I want to do is add a prefix to the permalink. I could just manually update but that's too tiresome ...
0
votes
0answers
13 views

Pretty permalinks to work for lighttpd webserver?

Does anyone know how to set up pretty permalinks for lighttpd web server? I've search on the web, but I didn't find anything reliable. Until now I only tried this which didn't work. Is this method ...
0
votes
1answer
49 views

get link of inserted media file of post within loop

inside the loop I would like to retrieve the URL of an inserted media file of each post. My attempt was: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php ...
0
votes
0answers
35 views

Fix 404 error after changing permalink structure

hope you are all doing good! I have this problem. I had set "Post Name" as the URL scheme, therefore, I get www.site.com/article-title for blog entries. I've written a few test posts and I realize I ...
0
votes
0answers
34 views

Is there a way to change the complete URL of the blog post for a redirecting tracking link?

Client wants to add tracking URLs to each blog post. So, for example, he gave me a URL like http://clk.atdmt.com/CNT/go/1234567/01/ which when clicked on would redirect to the URL of the blog post. ...
0
votes
1answer
18 views

Creating a Category Taxonomy

I have this entertainment site for TV shows. I cover at least 27 shows so far. I use so many different post types for the shows and it slows down the site, I eventually want to add more shows. I ...
0
votes
1answer
10 views

Post/page title to permalink transformation - what is behind the scenes?

If the post name is used as the permalink, what "transformations" does Wordpress do to it when using it as the URL and when does it perform these transformations? Like stropping spaces and special ...
0
votes
1answer
31 views

Wordpress with static posts page and custom permalink structure doesn't find posts with numeric permalinks

I've setup a static posts page named "Journal", mydomain.com/journal. This page now lists my 15 latest posts. All fine this long. I'm able to access each post individually by going to ...
0
votes
1answer
14 views

How can I add a custom permalink to a term?

How can I make a taxonomy term have a custom permalink? (on a term basis, e.g. /anything/here for a taxonomy called food and a term called burrito) I don't think there's much more to explain so, my ...
0
votes
1answer
31 views

How to use a hierarchical taxonomy in permalinks?

I use permalink: /%category%/%postname%.html and want to have categories like this: Wheels Mercedes Toyota Brakes Mercedes Toyota I want their URLs like this: ...
0
votes
0answers
59 views

display dynamic content based on url slug on custom page

i have a custom page named locations and i want the url to load like this: /locations/california /locations/nevada etc.. and upon each page load of the given url as above content is loaded based on ...
0
votes
0answers
18 views

Permalink structure depending on custom field

I'm trying to create a permalink structure that is only used when a certain custom field is filled in. For instance, when the custom field value of 'premium' is '1', I want to add /premium/ to my ...
4
votes
3answers
190 views

Getting the Site URL Including the Front Base

If my permalink structure is set to /blog/%postname%/, how can I retrieve a URL for my site which retrieves domain.com/blog/? With the permalink structure mentioned above, when using site_url();, it ...
0
votes
0answers
10 views

Single link gets redirected to home page

I have a page with permalink "/references", but this particular link gets redirected to the home page. When I change the page link to say "/ref", it works, but "/references" link still works too ...
0
votes
1answer
44 views

404 on child page when parent page slug is identical to custom post type

The internet is swamped with this issue but all the results were from 2010-2011 so I wanted to check if there was any advancement in the matter. I have the following scenario: Created a custom post ...
0
votes
2answers
24 views

How can I set up a secondary permalink structure?

So I have a situation on a site where I need multiple permalink structures. Now, I already know what you're going to say because literally every Google and SX result I've looked through says the same ...
1
vote
0answers
110 views

Remove subcategory and category with some rules from permalink

My current option for permalink is set to /%category%/%postname%/: I have a category 'stati' and parent category 'italian', 'german'. This parent category has some other parent category, for example: ...
0
votes
0answers
63 views

Custom post type permalinks non working on wp 4.0

When I updated to WordPress v4.0 it removed all of my custom post type permalinks and replaced them with "/". I have 2 custom post types: "Business" and "Coupon". The permalink settings for Business ...
0
votes
1answer
32 views

External PHP file & Pretty Permalink

I'm working in developing REST API for a WP based website. Endpoint is http://example.com/api.php I've included wp-load.php in the top of the file to access WP functions etc. However, ...
0
votes
1answer
28 views

How to change permalinks to taxonomy and post type's posts

Hello I want to change my taxonomies and posts permalink. I have taxonomies like that; Audi A1 1.4 TFSI 1.6 TDI A3 1.2 1.4 ...
0
votes
0answers
13 views

Difference between flush_rewrite_rules() and Settings > Permalinks

The issue I'm currently having is that I have 404 errors on all of my pages besides the home page. I can recreate this when I import and overwrite the WordPress database. Sometimes it happens after ...
0
votes
1answer
32 views

Rewrite rule not passing variable

I have the following code in my functions.php file, and it simply will not work to return the value passed via the URL. This is the code below: function custom_url_source() { ...