Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
gelsonsp
tagDiv Member

It’s solved.

I’ve tried again to adjust another function and I could to do.

I’ve adjusted the function “get_author” and I created a new function “get_cartola” in the td_module.php. Here is the code.


	 function get_cartola() {

            $buffy .= '<span>';
                $buffy .= the_field('cartola', $this->post) . '</a>' ;
            $buffy .= '</span>';
    }

Now I just call the function over the title in td_module_3 or td_module_4 or anywhere.

https://drive.google.com/file/d/0B8T_TzC3P4KbOXVnVjIyajFUNnM/edit?usp=sharing

Thanks.

gelsonsp
tagDiv Member

Hi,

Thanks for reply.

I’ve tried it but is shown the content of the field of the post/page selected. In homepage is not shown any content. In a post taged “Igreja Matriz” in the custom field is shown “Igreja Matriz” everywhere.
I’m not expert in php but I think I need a function to get the content of the custom field of the post in the loop.

I’ve studied the other functions used in td_module_3 like “get_author” and I’ve tried to adjust but didn’t work.

Here is the screen https://drive.google.com/file/d/0B8T_TzC3P4KbX2s1YTJwSmZTNlU/edit?usp=sharing

Viewing 2 posts - 1 through 2 (of 2 total)