Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Janetis

    (@janetis)

    Thank you thank you! Works perfectly.

    Thread Starter Janetis

    (@janetis)

    I altered the original page.php thus-ly:

    <?php get_header(); ?>
    
    	<div class="single_content">
    
            <?php
            $args = array(
                         'category_name' => 'blog',
                         'post_type' => 'post',
                         'posts_per_page' => 4,
                         'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
                         );
            query_posts($args);
            while (have_posts()) : the_post(); ?>            
    
            <div class="blog_box">
    
    	<h3><a href="<?php the_permalink(); ?>" class="img_hover_trans"><?php the_title(); ?></a></h3>
    		   <a href="<?php the_permalink(); ?>" class="img_hover_trans"><?php the_post_thumbnail('featured-blog-listing'); ?></a>
            <p><?php $temp_arr_content = explode(" ",substr(strip_tags(get_the_content()),0,430)); $temp_arr_content[count($temp_arr_content)-1] = ""; $display_arr_content = implode(" ",$temp_arr_content); echo $display_arr_content; ?><?php if(strlen(strip_tags(get_the_content())) > 430) echo "[.....]"; ?></p>
            </div>
    
    		<!--//blog_box-->
    
            <?php endwhile; ?>
    
            <div class="navigation">
              <div class="left"><?php previous_posts_link('? Previous') ?></div>
              <div class="right"><?php next_posts_link('Next ?') ?></div>
              <div class="clear"></div>
            </div><!--//nagivation-->
            <?php wp_reset_query(); ?>                  
    
          </div><!--//single_left-->
            <?php get_sidebar(); ?>
    
          <div class="clear"></div>
    
        </div><!--//single_container-->
    
    <?php get_footer(); ?>

    Would I need to create another page template for the “About Me?” I’m trying the avoid that, since its not entirely clear to me how one adds a new template to an already-uploaded theme on WordPress without taking everything down, adding needed page, then uploading everything again. If possible, I’d like to write something in page.php that recognizes “Janet” must be formatted alternatively.

Viewing 2 replies - 1 through 2 (of 2 total)