Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 09-29-2009, 04:18 PM   #1 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 363
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
need help to make modification to this script

Hello,

I have a wordpress blog and would like to make some modification to the title of each post. For now, the script for the title part of each post is the following:

Quote:
<h2 class="title"><?php the_title(); ?></h2>
<div id="stats" class="clearfloat"><span class="left"><?php _e('Submitted by','arthemia');?> <?php the_author_posts_link(); ?> <?php _e('on','arthemia');?> <?php the_time(get_option('date_format')); ?> – <?php the_time(); ?></span><span class="right"><a href="#respond"><?php comments_number(__('No Comment','arthemia'), __('One Comment','arthemia'), __('% Comments','arthemia') );?></a></span></div>
I want to make my title look a little like it is on this website

So basically, I want it split in 3 part: one for the image (I will call it with a custom field), one for the title and one for a small description (will use a custom field to call the excerpt). Finally, I will not display the author, date and number of comment with the title anymore.

I know how to use the custom field. All I need is some help to create the table that will arrange things together.

Thank you for your help!!!
__________________
Aquarium Life Live stock ID database

MadCaptain's Aquarium The only filter that remove Nitrates, Phosphate and Reduce Fish Lost! Learn how to cycle your fish tank in 24h!!!
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-01-2009, 09:33 AM   #2 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 363
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
ok, I figured some of it. my code is now like this:

Quote:
<div id="post_thumb" class="clearfloat" >
<div id="post_image a img">
<?php echo get_post_meta($post->ID, 'title', true); ?>
</div></div></span>
<div id="post_title" class="clearfloat" >
<h2><?php the_title(); ?></h2><br/>
<?php the_excerpt() ?></div></span>
The <div id="post_image a img"> should add a border to the image but it does not. do you know what's wrong with it?

I am also trying to center the image but I am not sure how to do this.

Finally, that table has 2 cells (left and right). I would like to add some padding or spacing to the cells.

Thank you for your help
__________________
Aquarium Life Live stock ID database

MadCaptain's Aquarium The only filter that remove Nitrates, Phosphate and Reduce Fish Lost! Learn how to cycle your fish tank in 24h!!!
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to make modification to this css script madcaptains Coding Forum 0 04-01-2009 02:54 PM
Need some help to make modification to my theme madcaptains Blogging Forum 3 02-17-2009 04:34 PM
Blogger template modification: can I do this.... madcaptains Blogging Forum 1 11-13-2008 02:47 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:13 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.