| User | Post |
|
9:21 pm April 19, 2008
| Aaron
Admin
| | | |
|
| posts 226 |
|
|
- Enable “Inline Posts” and set it up.
- Select “use awp_pages” function.
- 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>
- Enable the “Shift Pages” Module.
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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
<div class="story"> <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
<div class="story" onclick="location.href='<?php the_permalink() ?>'" style="cursor:pointer; width:100%; background-color:#B80F0F"> <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?
<?php do_action('awp_no');?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <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> <?php the_content(); ?> <?php if (function_exists('the_tags')) { ?> <p><?php the_tags('Tags: ', ', ', '<br />'); ?></p> <?php } ?> <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><?php do_action('awp_comments'); ?> <?php do_action('awp_yes');?> <?php endwhile; ?>- Use the following to copy and paste the code.
|
|