Tagged Questions
-1
votes
1answer
20 views
Echo author slug in post edit page
On the Post edit page in the back-end, how do I echo the author's user_nicename? I am referring to the author of the post, not current user.
-1
votes
1answer
39 views
Two Custom Post Types with Identical Articles Competing for the same Slug
I have created two custom post types, each with it's own slug. Each custom post type contains some articles with the same title.
So ideally I would have . .
customposttype1/mainarticle/
...
0
votes
2answers
57 views
Wordpress custom post type with folder structure in slug
I have setup a custom post type with the slug "interview" and it is working fine. I am trying to change the slug to "magazine/interview" but I keep getting 404 errors when I try to access the posts ...
2
votes
2answers
164 views
how to automatically generate random slug
I have tried to create a function that generate a random slug when a post is created. I am a bit worried that the function generates non unique strings as slugs. How can I solve this?
The function ...
4
votes
1answer
196 views
Custom Post Types, slug, archive and SEO plugins
I made a custom post type called "friends".
I am able to correctly list my friends using this urls:
http://mysite/friends/friend1/
http://mysite/friends/friend2/
http://mysite/friends/friend3/
...
1
vote
1answer
295 views
Change slug with custom field
I want to change the slug of a post with a custom field.
In example, if the custom field is "keyword" my post link will become: mysite.com/keyword.
If the custom field is empty, i want to generate a ...
1
vote
1answer
863 views
How do I get the slug of a custom taxonomy category of a post?
In my template file, I loop through posts that are categorized either web, print, or marketing in a custom taxonomy portfolio.
How do I echo the slug of each posts category?
0
votes
1answer
103 views
retrieve post slug by post_tags taxonomy
My scenario:
I have a part of a site which retrieves all post_tags terms for a specific category
the code:
query_posts('category_name='. $category[0]->cat_name);
...
3
votes
3answers
354 views
How to control which category will be picked for the slug of a post?
I'm using the permalink structure "/%category%/%postname%/".
What bothers me is that I have posts that belong to two categories. And of course, unfortunately, Wordpress always picks the wrong one for ...
0
votes
2answers
336 views
Automaticly add slug to posts
I'm using a us/news/%postname%/ structure for my permalinks.
This works great for regular posts.
However, I have a few different custom post types, and I don't want the us/news part in their slug.
...
1
vote
2answers
68 views
Define a name to the posts slug
I would like to use the url http://site.com/post/title-of-the-post for my posts and I've saw in my admin page I have the current url http://site.com/%slug%/title-of-the-post obiouvsly incorrect.
How ...
0
votes
1answer
2k views
Show all posts in category
I am trying to show all posts in each category. I've been searching around and it seems I need to have either the category slug or term_id to do so, like the code below.
<?php ...
-1
votes
1answer
185 views
Create Slugs Programmatically from Post Content for Specific Post Type [closed]
Was looking at the below post which does something similar to what I am trying to do...it clears out the post_name (slug) and recreates based on post_title.
(for a specific post type)
Create slugs ...
