Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Post Layout Area PHP file (http://forum.bytesforall.com/showthread.php?t=17471)

kayel_justice May 2, 2012 05:04 PM

Post Layout Area PHP file
 
See my site below.
http://spazbunny.com/

I used a custom code to display the featured image on the left and the_content with the_title on the right. Without my custom code the title displays above the featured image instead of to the right like how it is on my test site. My custom interferes with other stuff and I don't want to do that.

QUESTION
Where can I find "the_title" or "the_content" call tags so i can edit the php file?

---------------------------------------------------------------------------------------
My current code: Index.php
<!-- KL CUSTOM CODE -->
<table>
<tr>
<td style="border-bottom:1px solid #ccc; padding:5px 0 5px 0;"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a></td>
<td style="border-bottom:1px solid #ccc; vertical-align:top;">
<h2 style="margin-top:0;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</td>
</tr>
</table>
<!-- end of KL CUSOM

<?php // bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php // bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php // bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
</div><!-- / Post -->

<?php endwhile; ?>

kayel_justice May 2, 2012 05:19 PM

Okay i fixed the code it no longer interferes with the rest of the site or atahualpa codes.....
here is my code to customize the homepage but not the other pages. Still, please locate me to where the_title and the_content are in which php file.

thx -


<!-- KL CUSTOM CODE -->
<?php if( is_home() ){ ?>
<table>
<tr>
<td style="border-bottom:1px solid #ccc; padding:5px 0 5px 0;"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a></td>
<td style="border-bottom:1px solid #ccc; vertical-align:top;">
<h2 style="margin-top:0;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</td>
</tr>
</table>
<?php }else { ?>



<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
</div><!-- / Post -->


All times are GMT -6. The time now is 11:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.