Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

MilkyTech on "Can't find file to add php code"

$
0
0

i tried that index.php and all that's in there is this:

<?php
/**
 * Index
 *
 * Default home page blog
 *
 * v0.7 - Added php comments
 * v0.7 - Internationalized
 * v0.7 - Replaced default pagination with emm_paginate()
 * v2.0 - Remove sidebar for mobi
 * v2.1 - Fixed link
 * v2.3 - css grid class constant added
 * v2.3 - fixed mobi for child themes
 *
 * @author Tim Bednar
 * @version v1.0
*/
?>
<?php get_header(); ?>

  <div id="content" class="<?php echo constant('ASHFORD_CONTENT_RIGHT_GRID');?>">
  <?php if(function_exists('wp_content_slider')) { wp_content_slider(); } ?>
    <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
      <?php
        if(IS_MOBI=='false'){
          include (TEMPLATEPATH . '/post_excerpt.php');
        } else {
          include (ASHFORD_CHILD_DIR . '/post_list_mobi.php');
        }
      ?>
      <?php endwhile; ?>
    <?php else : ?>
      <?php  if (is_user_logged_in()){echo '<p class="hint"><a href="http://ashford.turtleinteractive.com/support" title="Get more hints">HINT &raquo;</a>: When you add more posts, they will be listed here. </p>';};?>
    <?php endif; ?>
    <?php if (function_exists("emm_paginate")) {
      emm_paginate();
    } else {?>
      <div id="paginate">
        <span class="paginate-previous"><?php next_posts_link('<span class="meta-nav">&laquo;</span> '.__('Older posts','ashford'), '10') ?></span>
        <span class="paginate-next"><?php previous_posts_link(__('Newer posts','ashford').'<span class="meta-nav">&raquo;</span>', '10') ?></span>
      </div>
    <?php }?>
  </div><!-- /#content -->
  <?php if (IS_MOBI=='false'){get_sidebar();} ?>
<?php get_footer(); ?>

You can see where I threw that line of code in at the start of the content div. I saved this file to the /themes/energy_pros/ folder and it didn't work


Viewing all articles
Browse latest Browse all 26892

Trending Articles