May I ask why you need the custom post type? (To see if your goal can be achieved another way…so you only need a theme with pagination)
The alternative is I could show you how to add pagination to a theme so all you need is one with custom post types.
Custom Post Type I need a reason for this, in order to post on the main page image and text and the standard “Posts” I want to leave myself to present content such as Terms, Privacy Policy, etc.
I tried to create a Custom Post Type with plugins – http://wordpress.org/plugins/types/ – but it does not work I flip 🙂
I added index.php
<? php
$ temp = $ wp_query;
$ wp_query = null;
$ wp_query = new WP_Query ();
$ wp_query-> query ('post_type = xyz'. '& paged ='. $ paged);
?>
Thanks for helping me 🙂
Have you considered using a category to present those terms, privacy policy, etc?
You could put them in a specific category and display them on your home-page (or wherever) as you see fit by writing a query that returns them.
e.g. If all your terms, privacy policy, etc are in the ‘Legal mumbo jumbo’ category, you can display them differently on the homepage using:
if(in_category('legal-mumbo-jumbo')){
//Do something here
}
Then to display your standard “Posts”, you could use:
if(!in_category('legal-mumbo-jumbo')){
//Do something here
}
Alternatively, you could write a query that returns only a specific post on a different part of the site.
Going only by your description above, I don’t think you need custom post types. We can go into creating custom post types if you really feel they are what you need
Kakoma, thank you for your help but I’d rather use despite everything for their contributions Custom Type Pos because these entries are to be my main part of the site – ie the big picture and below the text – chciałym have 10 of them on the page and then pagination. As I have tried to simplify the work with the help of plugins Types, but unfortunately I can not deal with pagination.
@piotrnet, so you already have the custom post types covered by a plugin? In which case you only need a theme with pagination? Might I (shameless plug) suggest my theme, Jaguza. It has pagination but doesn’t have custom post types which is why I didn’t suggest it initially. I could look around and suggest something else in the event that it doesn’t suit your needs
Kakoma, the theme was that about, but it can be set to “content-home.php” post_type? You do not necessarily need to have a built-in theme Custom Post Type and Custom Field – I use the add-Types.
I am determined to hold custom post type on the home page – and leave for other purposes Posts pagination there will not even need me 😉
Thank you very much!