I am trying to learn the workings of a wordpress theme by reverse engineering process 😛 and hope to learn at least a minimum amount so that i will be able to edit my current themes. I have downloaded a number of themes and using the class and id names to work out the php codes. In one of the themes (i think its simple magazine) i found the following code:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if(is_announcement()): ?>
<?php the_excerpt_extra(); ?>…. /?p=<?php the_ID(); ?>#more-<?php the_ID(); ?>”>[Read More]
While i think the first code is to get the big box of a single post content, the second one is to get a smaller content box showing a post for a specific category (at least thats how it was displayed in the demo). I have two questions…am i right with my thinking? And there is no category name/id inside the code..so how do i know which box is used to display which category?
- The topic ‘understanding php codes’ is closed to new replies.