Tagged Questions
0
votes
1answer
49 views
Archive of custom post type returns 404 [duplicate]
I have created a custom post type "video" (see my functions.php below) and it should return an archive on mysite.com/video but instead I get a 404.
Functions.php
// Video's
add_action( 'init', ...
0
votes
0answers
23 views
Show a dynamic page
I have created a wordpress site, ( eg:- localhost/wp_events ); And have a page localhost/calendar , this page will show a calendar with events in each date, this events loading from an api request, I ...
0
votes
0answers
24 views
How to remove the extra characters passing in the Custom post type
I have created the custom post type and the custom taxonomy. Then I have created the template file in the name of taxonomy taxonomy-product-categories. I created the post type, then added to the ...
0
votes
0answers
44 views
Rewrite URL to include custom field
I am using /%category%/%postname%/ permalinks.
Within two custom post types (and only those two), I need to append that URL structure with a third variable which will be from a custom field (provided ...
0
votes
1answer
78 views
Removing custom post type name in single article URLs
My articles are not standard posts but custom post types (not sure about how to formulate this exactly). When viewing an article in single view, the URL is : ...
1
vote
1answer
69 views
Taxonomy in URL
I have a huge problem: I want to have nice URL's on my Homepage. I got a custom post type and taxonomies. Now I want to have a URL like that:
www. mydomain ...
1
vote
1answer
95 views
Get Taxonomy Term Title by it's URL
I have a URL - http://localhost/products/product-name/ and I want to use this URL to retrieve the title Product Name
This is out of loop, so the URL provided is all I have to work from. Product Name ...
0
votes
2answers
116 views
create gallery page for specific post id
I have several custom post types similar to (place, person,etc.) refer this
and under each of these custom post type there are several posts inserted. ...
0
votes
0answers
68 views
Custom Post Type GUID taking special characters [closed]
I am trying to create a custom post type called calendar and posts in it. Later on when I do a $wpdb query and also check the database manually I find the GUID of all of them as
...
4
votes
3answers
1k views
Add .html (dot HTML) extension to custom post types
Is there any way to add the .html extension to custom post types without plugin ?
For posts I can use /%postname.html on the permalink settings
For pages I can use:
add_action('init', ...
0
votes
1answer
158 views
Tags and Taxonomy links not working for Custom Post Types
In my theme, I registered a taxonomy by the name of tax_groups for a custom post type named custom_items.
So the following URL was returning the lastest custom_items
...
0
votes
1answer
324 views
Custom Post Types, URL rewrite on multiple CPTs
Re: Custom post types, taxonomies, and permalinks
by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
1answer
35 views
Creating additional page with own URL for each custom post
I have a specific issue here. I have website using custom post types, and I need to create a specific functionality for these custom post types. From each custom post type the user should be able to ...
0
votes
1answer
139 views
Bizarre Permalinks Issue: 404 Errors Everywhere
First and foremost, this is definitely a duplicate of the age old question of "my Wordpress permalinks are generating 404 errors", but in a way it's different because no solutions I've tried have ...
2
votes
1answer
224 views
Best Way to Leverage Custom Post Type Related Content and Consider SEO
I'm doing a real estate project for a client. I've created a custom post type called "communities" to list new construction communities in her area.
I also want to have deeper sub pages but I would ...
1
vote
1answer
191 views
Best structure / rewrite rules to achieve the following url
I have been trying to achieve the following url structure in Wordpress and maintain a level of reusability in the admin area.
It is for a client preview area and needs to reflect multiple versions of ...
1
vote
1answer
635 views
How to have a custom URL structure for a custom post type?
Even though this question sounds like others here is my problem:
The site I am updating had a permalink structure of /%postname%, during this time I created a custom post type of "popups" (rewrite ...
3
votes
1answer
1k views
Use a separate upload folder for custom post attachment upload
So, i'm trying to find out a way to use two separate upload folders, being the default one wp-content/uploads for general media uploads, and another one say wp-content/custom for one specific type of ...
0
votes
1answer
210 views
How does: /index.php?post_type=event&event-date=2011-07-25 work? What if it doesn't work?
I have an events cpt with a slug "event" I am using it in several places but I am trying to create a "day" view that shows all the events for a given day. I also have the archive arg set in the CPT ...
0
votes
4answers
346 views
Pagination throws 404
I'm experiencing some problems with my pagination when displaying custom post types. I would like to display 9 posts and then display a numeric pagination. This is working, some links are generated ...
5
votes
1answer
333 views
How to give a CPT (custom post type) a date based url
I have events that have an event-date custom field. I want to create a date based page to display all events for a given day, and my hope was to use the url to help with that.
I have a 7 day ...
0
votes
1answer
991 views
can I chage url for register_post_type
I registered custom post type by register_post_type('new_post',$args); So new post url looks like `http://myweb.com/new_post/post_name
Can I change _later_ the part of url from new_post to something ...
3
votes
2answers
514 views
Possible to change the URL for the regular post type without affecting the URL of other custom post types?
The Dilemma
I have a few custom post types:
Portfolio Items
Testimonials
FAQs
The URL structures for these custom post types are:
mysite.com/portfolio/name-of-custom-post
...
2
votes
1answer
870 views
Get a permalink structure of /%posttype%/%category%/%postname%
I have a custom post type named Reportage, added in functions.php:
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'reportage',
array(
...
1
vote
2answers
506 views
How to detect filter in URL in Category page?
I need to add an additional filter based on a category for posts that have a custom post_type.
For example, I have a page located at /category/tasks that lists all tasks. I need to make it so I can ...
0
votes
1answer
131 views
Custom post type items open in archives?
I have my own custom post type under:
wordpress/custom
But when I open any item of this post type they open in:
wordpress/archives/custom/title
Why there's 'archives' and how to get rid of this ...