Forum

Thread tagged as: Question

Blog - include image in custom page

Hi,

I have found some very good help in relation to the Blog app, however I found the following:

<?php perch_blog_post_categories(perch_get('s'), 'post-photo.html'); ?>

that I thought would enable images, however nothing has appeared.

Previously I used:

<!--<h1><?php perch_blog_post_field(perch_get('s'), 'postTitle'); ?></h1>-->

to show the blog title in a php HTML field, so is there an equivalent command to show the picture?

Cheers

Garth Holmes

Garth Holmes 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I don't understand what you are trying to do, what is on post-photo.html?

Hi Rachel,

I was able to use the following:

<img src="<?php perch_blog_post_field($_GET['s'], 'image'); ?>" />

Thank you for all your help thus far.