I'm pretty new to this, but I have been stumbling on a feature I would like to have. I'm using Drupal 7.
I've created a some blocks on my front page. In one of those blocks I have a some div's and text that goes inside of my block. That works just fine and looks great.
Problem is that I want to place some randomly generated testimonials inside this block and I can't figure out how to do so.
Now, I've already created another view block that lists my testimonials randomly, but I just need to know the correct php code. Note: I've also enabled the PHP filter module, but it doesn't seem to be working.
I can easily assign my random testimonial view to a block, but I want to combine some HTML along with the testimonial and I just dont know enough about php.
Example:
Some random text here...
**PHP to bring in my random block of testimonials from views**Some random text here...
I've also heard that placing in PHP like this is not good practice. If anyone has a better way for me to do this I would appreciate it. Like I mentioned, placing this view in a empty block works fine. I just want to be together with some html.
Thanks!
-Dan