The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
11 views

how to get Pretty permalinks($wp_rewrite) till `INIT` action?

i want to call get_permalink() in early actions(i.e. plugins_loaded or setup_theme), but i get incorrect permalinks for custom post types: http://example.com/post-name instead of ...
0
votes
0answers
28 views

Custom Permalink Structure: /%custom-taxonomy%/%post-name%/

I would walk to the moon and back to get to the following answer. I've searched the internet for hours but couldn't find how to fix the following. I've created a custom post type and a custom ...
0
votes
0answers
12 views

change template by permalink endpoint via plugin

I'm trying to change template using this code: add_filter( 'query_vars', 'add_query_vars'); function add_query_vars($vars){ $vars[] = "photos"; return $vars; } function ...
0
votes
1answer
23 views

Make custom post available under main domain directly?

i have a custom post type called project. The shortlinks are all www.myapp.com/project/project-slug i want to change that to www.myapp.com/project-slug someone knows what I have to change in, i ...
0
votes
1answer
53 views

WP Job Manager Custom Permalink Returns 404 Errors

I'm building a site that uses WP Job Manager. I was interested in setting it up so that URLs show as: /category/region/name/ I found this link that explains how to do just that from their site and ...
0
votes
0answers
10 views

Setting post permalink outside /blog/

I am trying to integrate my blog in a better way with my ecommerce application. I am trying to switch from something like: Product category page: /power-tools/drills/ Blog post: ...
0
votes
0answers
29 views

Custom Permalink for custom post type

I need a permalink of the type domain/something/%post_type%/%post_name.I have a come up with the following code.Here reviews is the custom post type.But it is resulting in a 404. ...
0
votes
1answer
78 views

Different Permastruck Between Ajax Request & Normal Request

i create new post type and the slug can be changed from backend ex: register_post_type( 'job', array( 'rewrite' => array( 'slug' => $slug ); )); $slug is variable that i ...
0
votes
0answers
29 views

I want to show %postname% in url field instead of ID

I beleive one of the starred lines is to blame. how can I get the post name instead of ID function structured_data_page_metabox_callback($post){ wp_nonce_field('metabox_structured_data_page', ...
0
votes
1answer
49 views

How to display archive page posts based on author_id

I would like the posts to be displayed on archive page of custom post - gallery based on author_id i.e. the author_id is passed as permalink variable. The posts displayed on archive page would be only ...
0
votes
0answers
13 views

Limiting Comments Displayed to posts posted by particular author

I am on Page review. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare $perm_author_id and comment_author( ...
0
votes
2answers
39 views

Limiting the Archive page to posts posted by particular author

I am on Archive Page of a custom post type gallery. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare ...
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
60 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 ...
-1
votes
1answer
467 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
1answer
147 views

Remove custom permalink structure from custom post type without modifying register_post_type() directly

I'm using a custom permalink structure for my posts, /blog/%postname%/. I installed a plugin which registers a custom post type, glossary. I don't want this post type to use the custom permalinks ...
0
votes
1answer
751 views

Modify get_permalink with a specific filter

I'm trying to modify the get_permalink function to return a custom url, as: function my_function( $permalink, $postID ) { $external_link = get_post_meta( $postID, 'external_link', true ); if( ...
0
votes
0answers
84 views

whats is the perfect configuration to .htaccess for permalinks?

I have wordpress site with the normal url, when i try change this to permalinks, wordpress says 404 not found in the other pages that not is the home. after of search in the codex, i found that the ...
4
votes
1answer
366 views

Handle category name URL rewrite before different post type slugs

I went over a hundred similar topics here which were close to what I need, but unfortunately I wasn't able to fine tune this so apologies if it's a duplicate. I have a several post types (such as ...
0
votes
2answers
76 views

How do I override the user's input when updating a custom post type's permalink?

When publishing a custom post type, I'm trying to override the custom permalink based on code rather than what the user types into the input box. I can confirm my action is firing correctly, but I'm ...
0
votes
1answer
93 views

Make custom user_meta as permalink for post

For an existing custom_user_meta="user_name" how can i create a permalink for post submitted by that user in the URL. e.g. - for user_name="srk489" i want the permalink of the post "post1" posted by ...
0
votes
1answer
86 views

How to link to specific part of a page in wordpress permalinks

I have a one page template(muse theme) which its main menu items link to a specific part of the page in the webpage itself. I want to add # character before post name to go to the specific part of the ...
2
votes
1answer
773 views

Add specific word to default page permalink

Right now I am working on one of my client's project. Its all about amazon product display. My client wants me to change the permalinks of all posts, pages, serch results, archive pages, ...
0
votes
1answer
498 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
1k 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
79 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 ...
1
vote
3answers
410 views

Custom permalink with two parameters

I am using custom structure for permalink: /%postname%/%page%/%year%/. When I navigate to http://wordpress-serv/projects-teams/designers/19/2013, it gives me 404 "Page not found". Nonetheless, it ...
0
votes
2answers
97 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
35 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
532 views

Don't change Custom Post Type slug to unique value

I have a situation where it is needed that if I create two CPT pages wich both have the same name and the same slug. For example, if I add two CPT pages, wich both called "Post Name": The first slug ...
0
votes
1answer
110 views

Custom permalink to make a page respond properly

I've built a complete MVC framework that integrates perfectly well into Wordpress. This framework also provides a simple to intermediate implementation of a ReST interface (the real one with ...
2
votes
1answer
225 views

How to assign a Permalink to a Function

In Drupal, you can assign a URI to a function that gets called, like this: function mymodule_menu() { return array( 'custom_uri' => array( 'page callback' => ...
4
votes
3answers
9k 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?
1
vote
1answer
478 views

How do I prefix blog post urls as mysite.com/blog/%postname%/ but allow authors to still be located at mysite.com/authors/%nicename%?

I've tried a bunch of things but cannot find a solution that works. I want my site to have the structure: mysite.com/ = homepage mysite.com/blogs/ = blog archive mysite.com/blogs/year/ = blog ...
0
votes
1answer
969 views

Custom post type, permalink, add query variables problem

Doing something wrong, can't figure out what..Any help is highly appreciated for sure! I have a custom post type which I want to add query vars to in permalink structure.. So far so good.... This is ...
1
vote
2answers
2k views

Specifying multiple categories in URL (permalink)?

For example: http://www.example.com/dell/studio/studio-1558 where dell and studio are categories A few months back I heard from someone that it is not possible. I need to know why? Which part of code ...
0
votes
10answers
8k views

Why permalinks work with /index.php/%postname% but not with just %postname%?

I'm having a problem with Wordpress permalinks. I change the permalinks to pretty permalinks but I am just getting 404s for the pages now. The strange thing is when I use /index.php/%postname% the ...
0
votes
3answers
213 views

Changing permalink of WordPress

I am pretty new to this and hence facing a bit of a problem. Currently I am designing a website on my localhost using WordPress. I noticed that the permalink structure wasn't very appealing in the ...
1
vote
2answers
194 views

Help With Rewrite_Rules For a Custom Plug-In

I've been reading through this question and answer with great interest as I'm trying to achieve something very similar, but I'm failing and was wondering if someone could help me out. I am also using ...
2
votes
2answers
218 views

404 errors after plugin options update and category base change

I'm calling the function below after each "save changes" on my plugin's settings file via the sanitization callback. The plugin allows the end user to change their category base, and needs to ...
1
vote
1answer
804 views

Pros and cons of using [taxonomy name] in place of [category name]?

We are currently in development on a new site. Categories (& tags) are pretty much meaningless for us because we've implemented custom posts & taxonomies. By default, because I have enabled ...