Forum

Thread tagged as: Problem

Issue with Perch_blog_custom using 'blog' field

Hi,

I am trying to output data from a specific blog and i am using perch_blog_custom with 2 arguments - blog and template, like this:

perch_blog_custom(array( 'blog' => 'perch_get(s)', 'template' => 'post_facts.html' ));

This pulls content in, but it pulls content from all of the blogs rather than just giving me the content from the current blog.

Any ideas?

Thanks

Paul Langley

Paul Langley 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try:

perch_blog_custom([
    'blog' => perch_get('s'), 
    'template' => 'post_facts.html',
]);