Jump to content


Photo
- - - - -

how to add something at the bottom of every blog posts?


  • Please log in to reply
12 replies to this topic

#1 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 21 March 2011 - 08:01 AM

I have already learned how to use the hooks in the template setup. That'a an awesome stuff! but my problem is which template area should I use and which hook should I pick? I have no idea about which template area should I choose? Is there any suggestion about what template area is what.. also which hook should I choose? here is the pic:

Please Login or Register to see this Hidden Content



#2 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 21 March 2011 - 03:41 PM

Please do me a favor!

Please Login or Register to see this Hidden Content



#3 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 21 March 2011 - 08:47 PM

You are probably just using the wrong hook. Maybe try `pagelines_loop_after_post_content`

#4 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 22 March 2011 - 02:06 AM

thanks! but after I use the hook , it appears at the bottom of every "single" blog post . I want it appears at the "BLOG PAGE" and under every excerp.... thanks in advance..

#5 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 22 March 2011 - 02:22 AM

and it also appears in every PAGES which I don't want.. Is there any other hook I can use?

#6 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 22 March 2011 - 04:50 AM

Let's get you some further developer help on this. Thanks, Bryan

#7 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 22 March 2011 - 07:04 PM

No, you will want to use that hook, but a conditional tag to wrap around your code inside the hook function such as ` if(is_home()): function code here; endif; `

Please Login or Register to see this Hidden Content



#8 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 23 March 2011 - 10:53 PM

thanks,it almost solve my problem.
I use

Please Login or Register to see this Hidden Content

to show the FB code at where I want.
but is there any advice that I can show it at the Blog Post PAGE under "every post" ?

#9 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 24 March 2011 - 07:39 PM

add `is_home()` conditional tag.

#10 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 25 March 2011 - 06:09 AM

Thanks, but....
pity... no luck.
after i add

Please Login or Register to see this Hidden Content

nothing happen

Please Login or Register to see this Hidden Content


I want the FB funtion appears at every posts under the continue reading ->

I think it's maybe I didn't make the point..

#11 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 25 March 2011 - 05:14 PM

If the

Please Login or Register to see this Hidden Content

hook isn't the right one to use, perhaps you should try a different one.

#12 cshoffmann

cshoffmann

    Advocate

  • Members
  • 262 posts

Posted 25 March 2011 - 06:10 PM

I think she is asking for it to show up under the excerpt on the main loogp blog page (is_home()), so I thing she will need find the php template that includes the excerpts and then enter it there or somehow in her functions.php base. I don't know how, yet, but that's what I am observing. Not that I am actually solving anything here:)

#13 kakadong

kakadong

    Super Member

  • Members

  • 109 posts
  • LocationTaiwan

Posted 29 March 2011 - 12:29 AM

thanks all .
I solve it after using the hook

Please Login or Register to see this Hidden Content

I think,it could be better if the develop team tell us that where to find the template.
I found it in "template.postloop.php"
Anyway , Thanks all of you! ?????‰