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)

1
vote
1answer
642 views

Define permalinks for custom post type by taxonomy in WP 3.4

I want to create canonical permalinks for products and product types. I have the custom post types and custom taxonomy figured out, but I don't know if its possible to define permalinks with ...
0
votes
1answer
84 views

Choose template depending on URL

I have the following basic page setup: xxx.net/ -> static homepage xxx.net/blog/ -> blog page with loop showing all posts xxx.net/gallery/ -> gallery page with loop only showing posts that are ...
1
vote
0answers
114 views

WordPress Not Using Template Files After Permalink Update

I have a really weird issue that just occurred on a client site. I updated the permalink structure from /%category%/%postname%/ to /%postname%/ and suddenly my pages don't respect templates and are ...
0
votes
2answers
818 views

How to avoid duplicate Url for the home page

I am working on this web . I need to fiugure it out on how to avoid repeating the URL in the home Page. The Home page has actually two url creativesquaresummercamp.com/ ...
-1
votes
2answers
2k views

How to improve WordPress security by hiding non public facing files?

e.g. curl -I http://ma.tt/blog/wp-config.php 200 OK The wp-config.php is not public facing file, since it currently just return blank page, so why not return 404 instead. (so will not be cached by ...
4
votes
1answer
195 views

Permalinks so that one custom post type appears to be a child of another, not working

Currently I have two post types, "products" and "products-data" they are separate post types; however, for all intents and purposes products-data is a child post of products. The relation is ...
2
votes
3answers
6k views

How to call a plugin function from index.php [closed]

I have created a function in my plugin myplugin with the name foo, how to call it from the frontend? e.g. index.php?
0
votes
1answer
30 views

This Wordpress plugin isn't creating links correctly

To get my PHP and Wordpress skills, I've been trying to code a small plugin a day. Today's project was to create a plugin that searched over every word in my posts, checked if ...
0
votes
2answers
587 views

Make get_permalink() work outside the Loop using filters

I am developing a plugin which displays a wordpress post in a lightbox outside the loop. I noticed that some plugin which modify the contents of the post (like Facebook Like button plugin) use the ...
4
votes
2answers
840 views

the_title() and the_permalink() won't work on AJAX calls

I've run into a strange problem. I have a custom loop built with get_posts that works fine when loading the page normally: <?php $rows = get_posts(array( 'post_type' => ...
2
votes
1answer
417 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
0
votes
1answer
127 views

Multiple Tags Issue in Permalinks

I have configured %tag% for permalinks in wordpress Here is How to use first tag in permalinks. But while posting multiple tags in a post i am facing a kind of problem.Suppose i have wrote three tags ...
0
votes
1answer
288 views

Change next_post and previous_link to navigate throught parent categories only

I have this unchanged code from template-tags.php which links through all of the posts on the site. However I would like to restrict it so that it only links through the articles which are in the same ...
0
votes
1answer
293 views

Linking from a list of custom post type items to a single - get_post_permalink not working correctly

I have created a custom post type of Case Studies, and created a list page which gives an overview of each. Some have a link straight to the case study in PDF form and some have a link to a single ...
0
votes
3answers
176 views

Custom post types not using archive structure

I've been banging my head against my iMac trying to figure out what's wrong. I've also trolled these archives and have tried the following things to fix: flush permalinks remove possibly conflicting ...
0
votes
1answer
195 views

Pagination does not work on Custom Post Type archive while trying to get load more function working

Im trying to get a load more function to work with a custom post type on an archive page. I use this plugin and customized it a bit so it works with a custom post type. ...
0
votes
1answer
141 views

Custom Post Types and 404 Pages

I have tried refreshing my permalinks but I still cant get this to work correctly. I have the categories movies, gaming, blu-ray, and tv already created, so my URLs are site.com/movies/ for example. ...
1
vote
1answer
129 views

How to use first tag in permalinks

i have tried %tag% in permalinks but it dont showing tag name in the permalinks... What i wanna do is to use the first tag name in the permalinks. So, how to do it? Thanks
2
votes
0answers
495 views

get_permalink returns default link

I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase ...
0
votes
1answer
237 views

Using pagination with multiple loops causes it to break

I'm have two loops on my index page. One fetches the latest posts from the 'work' category and the other fetches the latest from the 'blog' category. (see below) I am also using a plugin called ...
0
votes
1answer
193 views

Wordpress sub-posts and permalinks

I'm thinking about one problem... There is a set of regular posts. Just posts in categories. I need to add for some of them a sort of subposts, posts which will be related to parent-post. This ...
1
vote
0answers
101 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
0answers
73 views

Wordpress permalink prefix

I have a small ecommerce site in Wordpress and I am having some difficulties in getting the right permalink structure. Basically, for basic pages it should look like : domainname.com/page_title. ...
1
vote
0answers
207 views

How to create a custom url for a category

I took over a site that displays the category in the URL three different ways. For some categories it shows "?category_name=blah". (Not ideal, but I can live with it) For newly created categories ...
1
vote
0answers
116 views

One blog inside another

I have a question about having two blogs at the same host simultaneously. Here is my scenario: The first blog is hosted in the root directory http://mathosproject.com/, and the second is hosted in a ...
1
vote
2answers
2k views

Combine Multiple Categories Into One URL Slug

I have a Wordpress website with 20+ categories. To make it easier to navigate I want to decrease the categories, but at the same time keep the original categories. In other words I want to be able to ...
2
votes
1answer
2k views

Setting 404 page in Nginx

I am using this page (http://wiki.nginx.org/WordPress) to setup my WordPress on a nginx/php-fpm server. Everything is okay, except the 404 page When I request www.example.com/foo, it send me the ...
1
vote
1answer
948 views

Parent Category link to its sub categories on different page

I am creating a magazine style wordpress site. We have multiple issues which will be parent categories and these will have around 3-5 sub categories. Every quarter we will create a new issue with new ...
2
votes
2answers
3k views

Does WordPress Change the .htaccess File When Updating?

I've just implemented a new WP website, replacing an older hardcoded HTML site. I will be adding 301 redirects in the .htaccess file to point the old URIs to the new WP Permalinks. My questions is, ...
1
vote
1answer
212 views

Clean install - Changing permalinks in twentyeleven give 404

interesting problem that I encountered, not sure if it's bug or not.. On a clean install using the twentyeleven theme I try changing the Permalink Settings to something different from the Deffault ...
1
vote
0answers
134 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
0
votes
2answers
599 views

Include Post Format in permalink

I'm running the latest version of WordPress with pretty permalinks enabled. I'm looking for a way to include the Post Format type (eg: link, status, quote) in the post's permalink. When the post has ...
1
vote
0answers
183 views

wordpress multisite permalink structure: mostly subdomains but not all

I've got a Wordpress multi-site install with three (related) sites, and it works great. Previously, each site had its own totally unique domain name which I was managing with the WordPress MU Domain ...
1
vote
2answers
2k views

Include taxonomy slug in url?

I have the following custom post-type and custom taxonomy setup: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'system', array( ...
3
votes
2answers
242 views

Understanding Permalinks on Custom Post Types

I hate to try to reinvent the wheel here, but none of the suggested post seem to work in answering my question. I am building a system for our 30 Under 30 honorees, which is basically setup as a ...
0
votes
1answer
216 views

Page content doesn't display when published but does when previewed as draft?

I have a page called ecommerce which is published. It's not private or password protected. When I view the page I only see the page title in the body none of the content. If I preview the published ...
1
vote
1answer
224 views

Re-write specific custom post type category URL to go to another page

I know this general question has been asked before (like here and here), but the problem is with my limited experience, I cannot get the results I need looking at other people's code. So here's my ...
1
vote
1answer
145 views

plugin links not working [closed]

I'm developing a plugin with the latest version of WordPress (3.4.2) locally (XAMPP 1.7.7 [PHP: 5.3.8]) and for some reason the links are not working within the plugin. I just have a simple delete ...
0
votes
1answer
55 views

Get URL of Post You Are Editing

I can't seem to find this anywhere, Is there a way to retrieve the URL of the post (which is of a custom post type) you are editing. Basically I want to somehow get the same URL that shows up like ...
0
votes
2answers
366 views

prefix to post permalinks without affecting category permas

I'm trying to make my links like this: site.com/article-sample-post as "article" is a fixed prefix and "sample-post" is the post slug.. but that prefix affect the category link structure making it ...
1
vote
1answer
216 views

How to redirect to correct pages after permalink structure change

I am changing my permalink structure from /%year%/%monthnum%/%postname%/ to /%category%/%postname%/. Is it possible to redirect old links using old permalink structure to the new link? Possibly via ...
3
votes
1answer
1k views

Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error

Here we have a snippet from a functions.php file... add_action('init', 'create_recipes'); function create_recipes() { $recipes_args = array( ...some properies..., 'hierarchical' ...
0
votes
1answer
325 views

Problems with permalinks (.htaccess not working)

I would like to use permalinks but they are not working. Whenever I use permanlinks like /%postname*/ are something else that differs from the default ... I get an 404-error. Calling php_info I can ...
2
votes
2answers
132 views

Multiple instances of Featured Image Query

I have some custom code built into the header of my theme that gets the featured image from a post, displays the image and links to the posts permalink when clicked on by a user. The problem I am ...
3
votes
2answers
4k views

How to modify URL structures in custom post types and taxonomies or terms

I am well aware that there are several posts covering the topic of customizing the permalink URL structure of custom post types, custom taxonomies, and taxonomy terms. However, none of them are real ...
0
votes
1answer
440 views

How to get the month argument from permalink in wordpress?

I am working on a custom Wordpress template for the archive. I have the archive set up by category but now I want to organize by category and month but I can't figure out how to access the month ...
-1
votes
1answer
232 views

Creating complex URLs with Wordpress permalink structure

I'm trying to self-educate so I can have a more informed conversation for a WP site development spec I'm trying to create. Grateful for any answers to what I would like to accomplish. I want to ...
0
votes
1answer
368 views

encoded search terms with %20

<form class="search-form" action="<?php echo home_url( '/suche/' ); ?>" method="get"> <input type="text" name="s" class="s" value="<?php the_search_query(); ?>" /> this ...
1
vote
4answers
5k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
0
votes
1answer
798 views

using wp_redirect to redirect to a permalink

I'm using wp_redirect to change the URL of my 404 page: function show_404($message = 'page not found'){ wp_redirect(home_url() . '/error/404?m=' . urlencode($message)); exit(); } I have ...