1
EyeKeeper
Wordpress - Recent post layout
  • 2004/7/16 11:56

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hi folks!

I'm messing around the wordpress module and I'm editing the wp_recent_posts.php file under the blocks folder.
My doubt is.... I've looked around all the folders and I'm not getting where the centering of the showed links are defined.

the part that generates the string/list is this one:

Quote:

if ($lposts) {
foreach ($lposts as $lpost) {
$post_title = stripslashes($lpost->post_title);
$permalink = get_permalink($lpost->ID);
$output .= '<br>>> <a href="' . $permalink . '" rel="bookmark" ' . $post_title . '">' . $post_title . '</a>';
}
}
$block['content'] = $output;


where $output is the generated link into the block.

Does anyone know how I can define the postioning like left, right, etc?

Thanks

2
EyeKeeper
Re: Wordpress - Recent post layout
  • 2004/7/16 12:16

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


sorry...

I tried many thing yesterday and I couldn't solve it...
but I got it know...

if someone could use it...just this line:

Quote:

$output .= '<br>>> <a href="' . $permalink . '" rel="bookmark" ' . $post_title . '">' . $post_title . '</a>';


to this:
Quote:

$output .= '<div align="left">>> <a href="' . $permalink . '" rel="bookmark" ' . $post_title . '">' . $post_title . '</a></div>';


that's it....

3
mikeh
Re: Wordpress - Recent post layout
  • 2004/7/16 12:38

  • mikeh

  • Just popping in

  • Posts: 70

  • Since: 2002/1/18


i've hacked this module to use smarty
its all a bit quick and dirty and specfic to own needs
and currently work in progress
but with addition of comments etc - feel that this could be the long searched for "content" module imo

Login

Who's Online

76 user(s) are online (46 user(s) are browsing Support Forums)


Members: 0


Guests: 76


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits