Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
matthewvb
tagDiv Member

@sunkast:

Generic – I used it for a custom post type, but throw in what you’d like. Framework is all there.

<?php
/* Template Name: Media Tracker - Custom */

get_header();

  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

	//define $args here.
	$wp_query = new WP_Query( $args );

?>

<div class="container td-page-wrap">
	<div class="row">
		<div class="span12">
                	<div class="td-grid-wrap">
                        	<div class="container-fluid">

<h1 itemprop="name" class="entry-title td-page-title">Page Title</h1>

<?php
if (have_posts()) { ?>
    <?php while ( $wp_query->have_posts() ) : $wp_query->the_post();?>

	<?php // output loop contents here ?>
    <?php endwhile; ?>

<?php echo td_page_generator::get_pagination(); ?>

<?php } else {
    echo td_page_generator::no_posts();
} ?>

			</div>
                    </div>
                </div>
            </div>
        </div>
<?php get_footer(); ?>
matthewvb
tagDiv Member

Figured out pagination.

<?php echo td_page_generator::get_pagination(); ?>

I think I’ve resolved all my issues on my own. You can close this out.

Thanks!

matthewvb
tagDiv Member

I think I may have got a template running (really basic).

Another question: Is there a way to call up your pagination code in:
td_page_genenator

Similar to the homepage with background pagination?

  • This reply was modified 12 years by matthewvb. Reason: formatting
Viewing 3 posts - 1 through 3 (of 3 total)