-
AuthorPosts
-
October 10, 2014 at 12:18 am #333518
Are there any tutorials or notes on creating new archive templates? Or a glossary of Avia terms? I created CPTs, linked taxonomies, got the ALB visible in the CPT. I just want to create a simple archive template that creates a bulleted list of post titles (linked) rather than looks like the blog. I’m getting lost in the ‘multi-big’, ‘blog-grid’ and avia references inside the existing templates.
I’m trying to produce this:
If you could point me in the right direction that would be great. Your help documentation is great, just I couldn’t figure this bit out – maybe I missed something?
October 10, 2014 at 9:31 am #333748Hi Sandie!
Thank you for using our theme.
Have a look at this:
http://codex.wordpress.org/Page_Templates
It explains, how to create custom templates.
Come back, if you have more questions.Cheers!
GünterOctober 10, 2014 at 5:23 pm #333959Indeed it does, but it doesn’t explain how to integrate them with the Enfold theme.
October 14, 2014 at 5:08 am #335349Hi!
Essentially Custom Post Type loop are the same as normal post loop with the addition of your custom post type name parameter. Consider this code:
$args = array( 'post_type' => 'product', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo '<div class="entry-content">'; the_content(); echo '</div>'; endwhile;Reference: http://codex.wordpress.org/Post_Types
For your purpose, replace “product” with your CPT.
Enfold’s page templates follows exactly the same principle as wordpress page templates.
Simply add your code anywhere after
get_header()andget_footer()in your page template.Best regards,
Arvish -
AuthorPosts
- You must be logged in to reply to this topic.
