Current User: Guest
Please consider registering

 
Search Forums:


 




How do I show only the title of a post on my front page?

Post

Aaron - Admin

3:33 pm - January 11, 2009

posts 379

 
1

Post edited 3:36 pm - January 11, 2009 by Aaron


  1. Enable "Inline Posts" and set it up.
  2. Select "use awp_pages" function.
  3. Edit the file you want to have show only titles and find a line that looks kinda like:
    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Add <?php do_action('awp_title'); ?> inside of the link like:

    <h2><a href="<?php the_permalink() ?>" <?php do_action('awp_title'); ?> rel="bookmark"><?php the_title(); ?></a></h2>
  4. Enable the "Shift Pages" Module.

Gianko - Guest

2:12 am - July 7, 2009

 
2

Well,

this just stop working after an upgrade :(

is there a new way for this?

thanks in advance

Aaron - Admin

2:11 pm - July 20, 2009

posts 379

 
3

Make sure that the options weren't unchecked. It happens occasionally.

Gianko - Guest

1:21 am - July 22, 2009

 
4

Post edited 1:23 am - July 22, 2009 by Gianko


inline post is enabled
use awp_pages is checked
and the "Shift Pages" Module.

and my loop

  1. <?php if (have_posts()) : ?>
  2. <?php $npo = 1; ?>
  3. <?php while (have_posts()) : the_post(); ?>
  4. <?php if ($npo == 1) { ?>
  5. <?php do_action('awp_no');?>
  6. <div id="post-<?php the_ID(); ?>">
  7. <h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" ><?php the_title(); ?></a></h2>
  8. <div class="entry">
  9. <?php the_content('Continuar leyendo »'); ?>
  10. </div>
  11. <div class="post-meta"><span class="date"><?php the_time('F j, Y') ?></span> <?php comments_popup_link('0 Comentarios', '1 Comentario', '% Comentarios', 'comments', 'Comentarios Cerrados'); ?><?php do_action('awp_comments_link');?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" class="permalink">Permalink</a> </div>
  12. </div>
  13. <div class="ucomme">
  14. <?php do_action('awp_comments'); ?>
  15. <?php do_action('awp_commentform'); ?>
  16. </div>
  17. <?php $npo++ ?>
  18. <?php } else { ?>
  19. <?php do_action('awp_yes');?>
  20. <?php if ($npo == 2) { ?>
  21. </div>
  22. <div class="post-recientes">
  23. <h1>Recientes</h1>
  24. <div class="recientes">
  25. <?php } ?>
  26. <p class="pentryu"><span class="fecha"><?php the_time('M j') ?>:</span> <a href="<?php the_permalink() ?>" rel="bookmark" class="rtitle" title="Permanent Link to <?php the_title_attribute(); ?>" <?php do_action('awp_title'); ?>><?php the_title(); ?></a> <?php comments_popup_link('0', '1', '%', 'comentarios', 'Comentarios Cerrados'); ?><?php do_action('awp_comments_link');?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" class="permalink"></a></p>
  27. <div class="entry">
  28. <?php the_content('Continuar leyendo »'); ?>
  29. </div>
  30. <div>
  31. <?php do_action('awp_comments'); ?>
  32. <?php do_action('awp_commentform'); ?>
  33. </div>
  34. <?php $npo++ ?>
  35. <?php } ?>
  36. <?php endwhile; ?>
  37. </div>
  38. </div>
  39. <?php else : ?>
  40. Use the following to copy and paste the code.

andi andi - Guest

6:43 am - November 15, 2009

5

Post edited 6:49 am - November 15, 2009 by andi andi


Post Awaiting Approval by Forum Administrator



Reply to Topic: How do I show only the title of a post on my front page?

NOTE: New Posts are subject to administrator approval before being displayed

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
7 + 10
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

10 Guests

Forum Stats:

Groups: 1

Forums: 4

Topics: 163

Posts: 438

Membership:

There are 172 Members

There have been 122 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

fromgrannie - 5

jakemc - 5

tombyrnes - 4

BAM - 4

Siam - 4

flash - 4

Administrators: Aaron (379 Posts)