• I have just set up my blog, and am realizing that most often my plugins just plain do not work. I have tried out shadowbox, various “share” plugins and other things rated 5 stars and verified as working.

    It seems like some of the share ones will work on “Pages”, but not on any of my posts in my custom template. Shadowbox wont work at all, as well as my page numbers plugin, and many others.

    Can someone please take a look at my code and see if i did something wrong?

    <?php
    /*
    Template Name: VS All Posts
    */
    ?>
    
    <?php get_header() ?>
    
    	<div id="container">
    		<div id="content">
    
    			<div id="nav-above" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'sandbox')) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'sandbox')) ?></div>
    			</div>
    
    <?php while ( have_posts() ) : the_post() ?>
    			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
    		<div class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s', 'sandbox'), the_date('', '', '', false), get_the_time()) ?></abbr></div>
    				<div class="entry-content">
    <?php the_content('<img src="i/b_rm.png" alt="Read More" title="Read More" />'); ?>
    
    				</div>
    				<div class="entry-meta">
    					<span class="author vcard"><?php printf(__('%s', 'sandbox'), '<a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a>') ?></span>
    					<span class="meta-sep">|</span>
    					<span class="cat-links"><?php printf(__('%s', 'sandbox'), get_the_category_list(', ')) ?></span>
    				</div>
    			</div><!-- .post -->
    
    <?php comments_template() ?>
    <?php endwhile ?>
    
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__('<img class="more" src="test" alt="Previous" title="Previous" />', 'sandbox')) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__('<img class="more" src="test" alt="Next" title="Next" />', 'sandbox')) ?></div>
    
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    			</div>
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php get_sidebar() ?>
    <?php get_footer() ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter venomshot629

    (@venomshot629)

    The plugins sometimes show up on the individual posts, but not on my template; where should I be putting the php lines for the plugins in my template i posted above??

    Make sure that this code is in your header.php file before </head>

    <?php wp_head(); ?>

    And this file is in your footer.php file

    <?php wp_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugins generally not working’ is closed to new replies.