Tagged Questions
0
votes
2answers
50 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
20 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
88 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
54 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
50 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' => ...
1
vote
3answers
116 views
How to call a plugin function from index.php
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
171 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
228 views
Programmatically updating a custom permalink structure [closed]
I have written a plugin, part of which creates custom post types via a form. The problem is, that after creating the custom post type I need to manually go to the Permalinks settings and click "Save ...
0
votes
1answer
464 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
1answer
584 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
3answers
175 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 ...