• So, why some plugins dont work if use a different template as Page atrribute,
    instead of the “Default Template”?

    I am working on a custom theme from scratch, so I use my own templates,
    now I need to use a picture gallery on one of the Pages, but NextGen just
    does not work, only if the template is the default!

    What file does WordPress is getting when you use the “default” template,
    I need to know whats going on that code.
    Maybe it has some scripts that the other templates need for this to work.

    Anyone have an ideia how to solve this issue?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try to create new template files just paste the code from page.php to new-page-template.php and then use it as a test.

    Thread Starter filete

    (@filete)

    Hey, I already got it work, I′ve just copy this loop to the template desire:
    Iam going to leave the code here , cause might help others:

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
      				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      					<?php if ( is_front_page() ) { ?>
      						<h2 class="entry-title"><?php the_title(); ?></h2>
      					<?php } else { ?>
      						<h1 class="entry-title"><?php the_title(); ?></h1>
      					<?php } ?>
    
      					<div class="entry-content">
      						<?php the_content(); ?>
      						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
      						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
      					</div><!-- .entry-content -->
      				</div><!-- #post-## -->
    
      				<?php comments_template( '', true ); ?>
    
      <?php endwhile; // end of the loop. ?>

    Yes that’s the way I suppose you to do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugins can′t work on custom template pages?!’ is closed to new replies.