Posted by Luca Thu 8th Feb 2007 10:58 - Syntax is PHP - 214 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
Description:
This is the correct code that should substitute the highlighted code in the
next part

$car=get_query_var('cat');
$myCategory=get_category($car);
if ($myCategory->category_description) { ?>


wp_specialchars(apply_filters('category_description',__($myCategory->category
_description,'personal'),$myCategory)); ?>




  1. get_header()?>   
  2.  
  3.    
  4.  
  5. "content">
  6.  
  7.    
  8.  
  9.     if (have_posts()) { ?>
  10.  
  11.  
  12.  
  13.        

    class="archive-title">

  14.  
  15.             $post = $posts[0]; // Hack. Set $post so that the_date() works.
  16.  
  17.             if (is_category()) { /* If this is a category archive */
  18.  
  19.                 printf(__('%s category','theme'), __(single_cat_title('',false),'personal'));
  20.  
  21.             } elseif (is_day()) { /* If this is a daily archive */
  22.  
  23.                 the_time('F jS, Y');
  24.  
  25.             } elseif (is_month()) { /* If this is a monthly archive */
  26.  
  27.                 the_time('F, Y');
  28.  
  29.             } elseif (is_year()) { /* If this is a yearly archive */
  30.  
  31.                 the_time('Y');
  32.  
  33.             } elseif (is_author()) { /* If this is an author archive */
  34.  
  35.                 _e('Author Archive','theme');
  36.  
  37.             } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { /* If this is a paged archive */
  38.  
  39.                 _e('Blog Archives','theme');
  40.  
  41.             } ?>
  42.  
  43.        
  44.  
  45.  
  46.  
  47.        
  48.  
  49.             $myCategory=get_category(get_query_var('cat'));
  50.  
  51.             if ($myCategory->category_description) { ?>
  52.  
  53.                

  54.  
  55.                 category_description,'personal'),$myCategory)); ?>
  56.  
  57.                
  58.  
  59.            
  60.  
  61.  
  62.  
  63.            

    class="archive-subscribe">

  64.  
  65.             "cat_ID, ''); ?>">
  66.  
  67.                 _e('Subscribe to this category','theme') ?>
  68.  
  69.            
  70.  
  71.            
  72.  
  73.         } ?>
  74.  
  75.  
  76.  
  77.        
    class="navigation center">
  78.  
  79.             posts_nav_link(' | ', __('« Previous Entries','theme'), __('Next Entries »','theme'));
  80.  
  81.         ?>
  •  
  •  
  •  
  •         while (have_posts()) { the_post(); ?>
  •  
  •    
  •  
  •            
    class="post">
  •  
  •                 require('post.php'); ?>
  •  
  •                 comments_template(); // Get wp-comments.php template ?>
  •  
  •            
  •  
  •  
  •  
  •            
    class="post-footer"
  •  
  •         } ?>
  •  
  •  
  •  
  •        
    class="navigation center">
  •  
  •             posts_nav_link(' | ', __('« Previous Entries','theme'), __('Next Entries »','theme'));
  •  
  •         ?>
  •  
  •  
  •  
  •        
  •  
  •     } else { ?>
  •  
  •        

    class="center">('Not Found','theme'); ?>

  •  
  •        

    class="center">("Sorry, but you are looking for something that isn't here.",'theme'); ?>

  •  
  •     } ?>
  •  
  •  
  •  
  •    
  •  
  •  
  •  
  •  
  • "sidebar">
  •  
  •     get_sidebar(); ?>
  •  
  •  
  •  
  •  
  •   get_footer();?>
  •  
  •  

  • PermaLink to this entry https://pastebin.co.uk/10092
    Posted by Luca Thu 8th Feb 2007 10:58 - Syntax is PHP - 214 viewsRun this post in the PHP shell
    Download | New Post | Modify | Hide line numbers

     

    Comments: 0