I installed a plugin for wordpress and activated it.
then I post a few of them under this Custom Post Types.
However, how do you view a list view of them (the ones I just posted)?
right now, I can only view a single post at a time. I also see inside the file directory, there a file called archive-xxx.php. I think that's used for displaying a archive or list of all this custom post types. But how do I make sure of it?
Download and try it see if you can create a few posts and display them
http://wp.tutsplus.com/tutorials/plugins/creating-client-testimonials-with-custom-post-types/
The post type will have a page-template to show the post. You need to create a page with that page template. All the posts in that "Custom Post Type" will appear in that page.
You can refer to this or this article for a better tutorial on custom post types.
Related
I have registered a custom post in my functions.php. Which post come from custom post category in my page but it does not work on single.php. when i click on read more that created with but don't open as single page.
The template single.php should be sufficient for Custom Post Types, as shown in the Wordpress Template Hierarchy.
This could be a rewrite rule issue. If you are not using the default Permalinks, try switching to them, save, and then go back to your chosen structure for WP to correctly include the rules for your new Post Type.
You could try using a different template to display your custom posts. Try copying the contents of single.php to a file named single-{post_type}.php. See the Codex for more details:
http://codex.wordpress.org/Post_Type_Templates
I have created my custom Post type on WordPress 3.5.1
So under Dashboard I see my custom Post type on the left hand side. So, I did a Add New under this Custom Type.
But I don't see any Template page I can choose for this Custom Type.
I create a file called archive-customtype.php that's a template page and put into my theme folder.
On the older WordPress to change different template you do a
From the Page Attributes meta box select Template > Custom Type and publish the page.
So my question, on this new 3.5.1 where do I select the template for this custom post type?
Right now it's using the default one.
Install the Custom post types plugin by iLocalize http://wordpress.org/plugins/types/. They have a lot of tutorials on how to add the custom posts to a page. This tutorial http://youtu.be/1SXyHbgjYaI here is the best I've found but there are more the wp-types website. Look up how to create a new page template on wordpress . org and place the code from the tutorial to the page template. Hope this helps.
When a post is cross-indexed, how do you control which custom (category-based) template wordpress displays? It seems uncontrollable at first glance, but I'm sure there's a way.
Do you put paramaters into the query that generates the link to the post, or wha?
Thanks.
If you're trying to display a certain template for a specific category, Wordpress has you covered. Simply make a template with the name 'category-%slug%.php', stick it in your theme directory, and when you view that category, you'll see the template that you created.
More Info on Wordpress Template Heirarchies
In the wordpress reading settings, where you set your "blog" page to post page,
even if I create a custom template for the blog - or add addition text/custom fields etc.
nothing seems to appear....
as far i understood , those will be ignored... as it is set static...
is there a other way, to create a custom page ("blog"), where you can add all those post into this page , style them, add text as well
If you're asking, how can I make a page of posts then there are many answers to this question. I personally ended up using these 2 plugins:
Pages Posts (which lets you present posts of a specific category or tag on a page)
Simply Exclude (Lets you selectively exclude categories and tags from page)
both can be installed via the plugins search
I'm developing a WordPress theme and I need to have a custom URL for some kind of content.
For example, I need to have a page to show some article details. Now, i've created a page template called "Article", and so i've to create a new page and give it the page template "Article"
(I get the url http://mydomain.com/article?id=123)
It works fine, but now i'm having dozens of this pages, and it's a mess to create them all on every installation of this theme, so i want to do it in my theme code.
I saw something near that on BuddyPress, where you can use /member/ and it redirects to a member page. I just wanna know how to do so.
Thanks!
If you are running wordpress 3.0 I would recommend making a custom post type for your articles. That would allow you to control the URL in the way that you want and also allow you to use more sophisticated full text urls if you wanted to.
Here are some links to some tutorials about how to make a custom post type to get you started:
http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0
http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/
The second one has an example file that you can download and edit to help you get started.
Cheers,
Paul