Jump to content


Photo

Custom Php Function To Honepage


  • Please log in to reply
3 replies to this topic

#1 icex

icex

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 November 2012 - 08:45 PM

Hi, I would like to ask you for help.

On my website I need insert PHP function instead of homepage content. I can not use static homepage, because I need show dynamic data from database. I found function pagelines_after_main but this function insert data instead of css styles.    I can not use function pagelines_loop_before_post_content because I need different structure than other page. Can you advise, how I can insert custom PHP function on homepage into part with template style?   



#2 James B

James B

    Advocate

  • Moderators
  • 4983 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 28 November 2012 - 09:49 PM

Hi there, what are you trying to put into the dynamic page other than the blog posts?



#3 icex

icex

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 November 2012 - 10:58 AM

I would like insert rettings and other dynamic information from database (my custom table) to main page.



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 13148 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 29 November 2012 - 12:27 PM

Hi,

 

I am not entirely sure what you're trying to do but if you wish to insert content onto a specific page in this case the homepage, you will need to use the is_home conditional tag in your hook.

 

http://codex.wordpre...ference/is_home