Home
Categories
Most viewed
Facebook
Login
Registration
Home
»
Custom category.php for Wordpress custom post types?
Resolved: Custom category.php for Wordpress custom post types?
posted by
admin
on March 21, 2016
How do I create a category.php template (e.g. category-testimonial.php) that ONLY displays posts from a custom post type?
Views:
428
Category:
WordPress
Tags:
wordpress
,
custom post type
,
post type
,
posts
,
post
,
wordpress category
,
slug
,
archive
,
wordpress archive
| Last updated on March 21, 2016
One comment
Facebook
VK
One comment
#216
admin
says:
March 21, 2016 at 03:40 am
It sounds like you're confusing taxonomies (tags and categories) and post types (post, page, custom post types). What you actually want to do is create an archive template for your custom post type like archive-custom_post_type.php.
archive-custom_post_type.php
Reply
Leave a Comment
Fields with
*
are required.
Name
*
Email
*
Website
Verification Code
Comment
*
Search
Tag:
Search:
Tags
MySQL
array
cgridview
css
error
javascript
jquery
js
linux
php
php array
php string
select
ubuntu
wordpress
yii
yii 1
yii 2
yii error
yii2
Recent Comments
admin
on
Access to Font at from origin has been blocked by CORS policy
admin
on
PHP Curl with login password create empty cookie and can't login to account
NewmcTor
on
Create facebook app id
admin
on
Yii2 Composer Update - Your requirements could not be resolved to an installable set of packages. Problem 1
Franco Fassio on
Install Notepad ++ on Ubuntu 16.04
admin
on
SSH: connect to host 'ip address' port 22: connection refused
admin
on
PHP7 Call to undefined function mb_substr() ubuntu
admin
on
Yii 1 - Error 500 - include(DOMDocument.php): failed to open stream: No such file or directory
admin
on
Yii2 ActiveForm password autocomplete off chrome not working
admin
on
Yii2 showScriptName remove index.php Not Found apache
One comment
Leave a Comment