Archived

This topic is now archived and is closed to further replies.

  • 0

Custom Php Function To Honepage

Question

Posted · Report post

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?   

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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.wordpress.org/Function_Reference/is_home

Share this post


Link to post
Share on other sites