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.
0
votes
3answers
132 views
How to filter posts by format and category via url?
I figured out I can filter posts by format just by doing /type/{format} e.g. /type/gallery/ in the url.
Looking for a way to filter by categories on top of this, something like ...
0
votes
1answer
96 views
Redirect single article permalink to paginated category page
Is it possible to redirect from a permalink (a single article) to that same post in a relevant category page, which might be paginated?
So when people visit http://domain/post_number they get ...
1
vote
1answer
77 views
Passing the JQuery string to Worldpress URL
I have already followed the tutorial here: http://www.rlmseo.com/blog/passing-get-query-string-parameters-in-wordpress-url/
But it still doesn't work.
In the function.php, my code is
//decode ...
0
votes
1answer
43 views
disable permalink on custom post type
I have created a custom post type, but I do not want it to have a permalink. By default, after entering post title, it creates a perma link. I do not them to be generated.
From my reading, it is said ...
3
votes
2answers
114 views
CPT archive 404ing when using a custom taxonomy name as a variable
So, I'm using a custom post type archive and generating a JavaScript-based filtering interface for sorting through results.
Here's an example: http://www.inverity.org/sermons/
Now, what I'd like to ...
0
votes
2answers
77 views
get_permalink doesnt work as expected after switch_blog() [closed]
I have this problem with my wordpress network, at some point I want to retrieve the links to specific posts from a different site of my network.
I am using the function switch_to_blog($id), which ...
0
votes
0answers
21 views
Link to the same page ( action=“whattowritehere?”=
I am really noob for web and just got jumped in the middle of it... so there are my code which is working perfectly without wordpress..but if i use it with a custom template the buttons actions didnt ...
0
votes
0answers
61 views
Domain & Wordpress Installation on seperate Servers
Today I wanted to change my wordpress url. I register the domain from another provider, not from my own host.
This morning, I got an mail from the registrar saying that the url now points to my ...
0
votes
0answers
56 views
Setting breadcrumbs to show both parent and child
Good day
In Wordpress, I have a a parent category and several child categories of that parent. Now I made a post that has category 'child'. Whenever I click on the post in the browser, the breadcrumb ...
0
votes
1answer
56 views
redirect old pages by .htaccess
i want to redirect pages from www.sitename.com/sitename/pagename.html and www.sitemap.com/sitename/?page_id=213 to
www.sitename.com/sitename/pagename
how i can do that by using .haccess file
i ...
0
votes
0answers
54 views
Auto Generate Image Link After Image Content
I want to ask with all, i'm very stupid coding! i don't know what this is.
I have auto wallpaper site with one pic/post, but i'll put auto generate download image link after that wallpaper (just image ...
0
votes
0answers
48 views
Blog page nav not working with default permalink structure
I have a piece of php code that creates nice looking page navigation, however when the permalinks are set to default rather than something like post name the pagination buttons don't work and just ...
0
votes
1answer
20 views
Text in permalink
I've this kind of permalink for post type : /widgets/%category%/%postname%/
And the problem is that when going to /widgets url (http://mysite.com/widgets) a not found page error (404) is displayed. ...
1
vote
0answers
27 views
google index after change sitemap [closed]
i created a website by wordpress and at the beginning i left the links like that
www.wesitename.com/?page_id=537
and i created a site map and uploaded it to google and google indexed 36 pages ...
0
votes
1answer
27 views
Customizing a permalink
Good Day All
I have a featured slider on the home page that can call a category from which it gets its featured content. Now, for each featured slider, I made a post with category 'featured'.
Now the ...
0
votes
2answers
128 views
Setting up two separate blogs while using WordPress as a CMS
I need to get this set up ASAP and cannot seem to figure out how to do this after searching and searching.
I am using a WordPress install mostly as a CMS. I would like to have two separate areas on ...
0
votes
1answer
50 views
get_posts post title permalink not working for last item in array
I have a custom field attatched to a post that contains the following array of post titles...
a:6:{i:0;s:21:"Strawberry Cheesecake";i:1;s:15:"Flapjack";i:2;s:14:"Chocolate Muffin";i:3;s:27:"Apple ...
0
votes
1answer
180 views
Permalinks for single-[custom-post-types] not working
I've been reading a lot about my simple issue, but wasn't able to find the simple answer, so, please excuse my noobieness.
I have a custom post type registered in functions.php, like so:
<?php
...
0
votes
1answer
49 views
get_permalink returning first letter
I'm trying to use an ajax function in my custom template to retrieve a post's custom fields to show a post overview. Getting the custom fields is working, but the getting the permalink isn't. I'm ...
0
votes
1answer
88 views
custom permlink .htaccess file 404 Not Found error
i read alot of atricles taking about this but i could fix my problem yet .. i want to make the permlink custom
/%category%/%postname%
and i searched for the .htaccess in the wordpress files and ...
0
votes
0answers
138 views
How to change the permalink structure of the default post type
This Custom permalink structure only for default posts looked like the perfect answer:
add_action( 'init', 'my_new_default_post_type', 1 );
function my_new_default_post_type() {
...
1
vote
0answers
76 views
Filtering get_permalink in Jetpack / ShareDaddy
I recently changed my permalink structure from /YYYY/MM/%post_name%/ to /%post_name%/, and lost my tweet counts and likes (provided by Jetpack) in the process.
To fix this, I want Jetpack to use the ...
0
votes
1answer
71 views
Removing parent slug in hierachial custom post type
I need to remove the parent slug in the permalink of a child post. The child post is of a different cpt than the parent post. So I get:
example.com/parentcpt/parent-post-name/child-post-name //which ...
0
votes
1answer
87 views
wp_get_attachment_url not working
I have a template file which shows the posts of a category called downloads. for each posts i have attached a pdf file. I have given a link to download the pdf file on the page. But when i click the ...
2
votes
1answer
101 views
How to increase the character limit for post name of 200?
I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน
I've changed the type of "post_name" using ...
0
votes
2answers
48 views
Custom rewrites for pages and categories
I am trying to understand how can create custom rewrites for pages/categories. Ex i have example.com/?page_id=178 and for this page have a contact form and i want this: %slug%.php
...
3
votes
1answer
82 views
Creating custom permalink structure for languages
I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc).
I hook into the wp action to read the ...
0
votes
1answer
69 views
changing permalink for custom template in posts of a certain category
I've created a unique single post template to give people the option of reading all posts of a certain category using the awesome "reveal.js" which they access via this link
<a ...
0
votes
2answers
44 views
Link post images to post
For some reason I can not find any good solution to making the post images link to the post.
I found a script on http://wpguy.com/plugins/linked-image/ which works - but does not remove the old link, ...
1
vote
1answer
128 views
If permalink is equal to current site url
Is there a way to add a class to a div, when the current site url is equal to the permalink of a post?
I need a class "current" to my custom made menu. I put the posts links in a list item with a ...
1
vote
0answers
97 views
Wordpress add_permastruct unwanted matches
I'm working on a project which involves filtering some customs posts on the front-end. I managed to create the permalinks including a custom field, but it seems that the rewrite rule matches some ...
1
vote
0answers
49 views
An other permalink problem - 404 Error
I know there are already a lots of post about this question, but not a single one helped me to solve this issue.
I moved my page to an other server and afterwards I was facing the problem that the ...
4
votes
1answer
132 views
Does WordPress automatically do 301 redirect if I change permalink
I don't know how to check this but it seems to do the redirection when I change the permalink structure.
0
votes
1answer
64 views
Rewrite rules for custom posts types
So I created a new post type 'quote'.
Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
0
votes
2answers
83 views
get_permalink to attachment not working
I have following code
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => 12,
'post_status' => null
);
$attachments = get_posts( $args );
if ( ...
-1
votes
1answer
47 views
Custom permalinks structure
I would like to have this structure:
www.mysite.com/2013
(must show all posts of 2013)
www.mysite.com/my-category/2013
(must show all posts of 2013 and of category "my-category")
...
0
votes
1answer
46 views
permalink structure for single-{post-type}.php in wordpress
I have tried many ways to display my custom post type as single-{post-type} and finally it works nicely once i used:
'rewrite'=> false,
before that, i used
'rewrite' => array( 'slug' => ...
-1
votes
1answer
82 views
Is it posible to translate a url prefix?
I use a prefix in my url using "add_permastruct" in my functions.php:
www.mydomain.com/the_prefix/my_category/postname
But I would like to translate "the_prefix". For example, if my site is in ...
0
votes
1answer
135 views
Create custom links for excerpts with php dynamically
Good Day
I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this:
...
0
votes
1answer
102 views
Custom post type category permalinks and archive pages
I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup:
Custom Post Type: ...
0
votes
1answer
75 views
Advanced permalinks structure
I would like to get this:
mysite.com/category/tag/
example:
mysite.com/news/sports/
News is a CATEGORY and sports is a TAG
How can I do it?
Thanks.
0
votes
1answer
61 views
Permalinks in Multisite not working
I'm using a subdomain multisite and I receive a 404 when trying to visit posts. The main domain works, but the permalinks aren't working. When I use the default permalinks, they work, but when I use ...
0
votes
1answer
38 views
Permalinks that go to a specific template
This is actually my first question here, so hello to everybody in this community!
I have developed a theme with a custom post type and a template (lets call it "my_template.php") that shows posts of ...
0
votes
1answer
95 views
redirect loop to page, can't find origin, can't remove [closed]
I have a new client who did "something, I can't remember what" to her blog. Now when you visit the home page, it redirects to a page she created and deleted, "/road-maps/". I have no idea why it ...
5
votes
1answer
155 views
Date based URLs for custom posts and pagination
I have created a custom permalink structure for a custom post type (events) using the code below:
$GLOBALS["wp"]->add_query_var("event_year");
$GLOBALS["wp"]->add_query_var("event_monthnum");
...
3
votes
1answer
139 views
Custom taxonomy on permalink
I have a long time problem and look forward for your help.
I have a custom taxonomy of "city" (it is no hierarchical like tags).
I just would like my URLs to look like this:
...
0
votes
1answer
36 views
Overwrite URL on blog posts
I would like to overwrite my URL on single blog posts.
At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as
www.mydomain.co.uk/blog/post-title ...
2
votes
2answers
33 views
custom post type default permalink
Is it possible to use the permalink structure defined in the Wordpress settings panel for custom post types? And if so, how do I do that?
I currently have:
function add_posts_two() {
$labels = ...
0
votes
0answers
52 views
How to add a custom permalink to posts that have one specific tag or category?
sorry if the title doesn't explain well what I want... I'll write an example. I have set one Wordpress site with this permalink settings:
/%postname%/
That's what I need for mostly of the posts, but ...
1
vote
1answer
68 views
Add a css class to a taxonomy permalink
I need to add a css class to every <a> element retrieved by the_terms() (or similar function) in order to open the taxonomy permalink in a fancybox modal window.
I've been searching this whole ...



