Search 
Search Forums:


 




Inline post except on the first one

Reply to Post
UserPost

8:30 am
May 1, 2008


Steven

Guest

Hello,

first of all : THANK YOU FOR AWP, I just love it ! But :

I’m getting crazy since yesterday on my little problem! I followed you method about showing only the title of a post and to use this title to show the content. This works fine, but i would to take it to another step (two other steps actually).

I would also like to apply the inline post on every posts BUT the first one. So for that i used the ” < ?php query_posts("showposts=1"); ?>” and “< ?php query_posts("showposts&offset=1");?>” to make a difference between the first post and the others. On the others i applied “< ?php do_action('awp_title'); ?>” as explained in the inline posts + shift page method.

Follow me?

Well this gives me Ajaxed titles everywhere but on the post which is great, but where is my content on my first post.

I also tried the awp_die function on the first post which makes the content appear everywhere. So I put the awp_live on the other post which doesn’t do anything.

So here’s where i’m stuck.

Second part on my goal, I need to hide the comment link on “ajaxed” post and show the comment link only when I hit the title to make the content appear.

Was I clear?

Here a bit of code that i have right now (i removed unnecessary code for this issue):

[code snippet moved to pastebin]

9:25 am
May 1, 2008


Aaron

Admin

posts 247

It isn’t awp_die and awp_live it is <?php do_action('awp_no');?> and <?php do_action('awp_yes');?>. My apologies.

10:26 am
May 1, 2008


Steven

Guest

Great, thanks a lot !

Everything is working fine now!

About hiding the comment link, do you have any clue how to hide this in order to male it appear only when i make the post appear?

So far i understood that inline comments just works on “the_content()”, I’d like to had the comment into that and i can’t figure it out!

8:57 pm
May 9, 2008


Aaron

Admin

posts 247

Inline comments does not run on the_content(). In only runs when you add the do_action(’inline_comments’); or comments_template();

Right now there is no easy way to show the comments at the same time as the post.

Reply to Post


Reply to Topic: Inline post except on the first one

Name (Required):

EMail (Required):

Website):

Guest URL (required)

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

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

6 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 235

Posts: 719

Members:

There are 1 members

There are 226 guests

Aaron has made 247 posts

Top Posters:

Administrator: Aaron