Search 
Search Forums:


 




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

Reply to Post
UserPost

9:21 pm
April 19, 2008


Aaron

Admin

posts 226

  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.

4:02 am
July 13, 2008


mARTin Bierschenk

Guest

How can I open one Post by default?
I like the first post (custom) to be show by default.

5:03 pm
July 16, 2008


Aaron

Admin

posts 226

Please see this thread to temporarily disable AWP in your theme.

5:57 am
July 17, 2008


mARTin Bierschenk

Guest

So shall I write < ?php do_action('awp_no');?> at the beginning of my post?
and < ?php do_action('awp_yes');?> at the beginning of the next post?

9:50 pm
July 27, 2008


sk

Guest

mARTin Bierschenk said:

So shall I write < ?php do_action(’awp_no’);?> at the beginning of my post?
and < ?php do_action(’awp_yes’);?> at the beginning of the next post?


put < ?php do_action('awp_no');?> outside the loop and < ?php do_action('awp_yes');?> before endwhile statement.
Hope this will help

10:52 pm
July 30, 2008


mARTin Bierschenk

Guest

Thanks Aaron and sk for your advice.

Tried it but did not succeed. Loosing to much time on try and error.
I’m not a programmer so I have no clue what to do.

when I add <?php do_action('awp_yes');?> one line above <?php endwhile; ?> where shall I put <?php do_action('awp_no');?>?
You wrote… outside of the loop. I guess if I put it in the HTML of the Post it will still be in the loop. and when I put it before <?php if (have_posts())... it still does not work how it should. the code appears as normal text on the page.

Also try to make the whole box around the headline click able and not just the Title.
Replaced

  1. <div class="story">
  2. <h3><a href="<?php the_permalink() ?>" <?php do_action('awp_title'); ?> rel="bookmark" title="<?php printf(__(' -> Click to open or close %s','hemingwayex'),the_title()); ?>"><?php the_title(); ?></a></h3>

with

  1. <div class="story" onclick="location.href='<?php the_permalink() ?>'" style="cursor:pointer; width:100%; background-color:#B80F0F">
  2. <h3><?php do_action('awp_title'); ?> rel="bookmark" title="<?php printf(__(' -> Click to open or close %s','hemingwayex'),the_title()); ?>"><?php the_title(); ?></h3>

But that’s not working so well. The Box is click able but the Headline shows as code and links to the single post page.
So stuck.

8:31 pm
September 19, 2008


SK

Guest

Hi, I’ve managed to show newest/first post only with this code with AWP 1.2.1 but somehow it won’t work with newest AWP release 1.2.5, is that something wrong?

  1. <?php do_action('awp_no');?>
  2. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  3. <h2><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" <?php do_action('awp_title'); ?> rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><span><?php the_title(); ?></span></a></h2>
  4. <?php the_content(); ?>
  5. <?php if (function_exists('the_tags')) { ?>
  6. <p><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
  7. <?php } ?>
  8. <div class="metadata"><img src="<?php bloginfo('template_url') ?>/images/arrow.gif" alt=">" /> <?php the_time('d M y'); ?> | <?php the_category(', ') ?> | <?php do_action('awp_comments_link');?> <?php comments_number('(0)', '(1)', '(%)', 'number'); ?> <?php edit_post_link('Edit',' | ',''); ?></div>
  9. <?php do_action('awp_comments'); ?>
  10. <?php do_action('awp_yes');?>
  11. <?php endwhile; ?>
  12. Use the following to copy and paste the code.
Reply to Post


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):

Guest URL (required)

Math Required!
What is the sum of: 6 + 4        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

6 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 184

Posts: 596

Members:

There are 1 members

There are 173 guests

Aaron has made 226 posts

Top Posters:

Administrator: Aaron