custom post types
-
Hi there,
I have been learning custom post creation for wordpress and how this will help with managing image uploads etc.
I followed this good tutorial https://sicdigital.com/2010/07/create-custom-post-type-for-image-upload-wordpress3/
I am now a little unsure how I go about calling the images etc within my theme. Any ideas?
I have this code which calls the titles of each of my before and after pages:-
<?php $loop = new WP_Query( array( 'post_type' => 'before_and_after', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_title( '<h2 class="entry-title"></a><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?> <div class="entry-content"> <?php the_content(); ?> </div> <?php endwhile; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘custom post types’ is closed to new replies.