blakemoore123
Member
Posted 12 months ago #
I'm trying to upload pictures to my page but you have to go directly to the post before they will appear.
Heres an example.
http://www.blakesmoore.com/photos/
Now click on the word Turkey or Guitar artwork and you will see the pictures.
I want the images to be displayed ont he homepage like they are on my friends website. http://www.mrdanielknight.com/blog/
PLEASE help. Thanks
Your theme may be using <?php the_excerpt();?> instead of <?php the_content();?> in its template files. Simply edit the relevant template files and replace <?php the_excerpt();?> with <?php the_content();?>.
blakemoore123
Member
Posted 12 months ago #
Thanks Esmi,
Which files should i be editing? I'm quite new to this.
Thanks
Start with your theme's index.php template file.
blakemoore123
Member
Posted 12 months ago #
I have just searched my index.php file for <?php the_excerpt();?> and nothing in there says this. any ideas?
look again:
<?php the_excerpt('Read the rest of this entry »'); ?>
(the parameter in the brackets does not make any sense, as the function 'the_excerpt()' does not use arguments)
blakemoore123
Member
Posted 12 months ago #
I changed
<?php the_excerpt('Read the rest of this entry »'); ?>
to
<?php the_content('Read the rest of this entry »'); ?>
and now i get this error when i go to my site
Fatal error: Call to undefined function get_header() in /websites/123reg/LinuxPackage23/bl/ak/es/blakesmoore.com/public_html/photos/index.php on line 1
please help!
The code change should not have caused this error. Perhaps you inadvertently removed more than you should have?
blakemoore123
Member
Posted 12 months ago #
I'm sure that is all i have changed. I downloaded the theme again and then changed it and still have the same error.
What happens if you change it back?
blakemoore123
Member
Posted 12 months ago #
Nothing I get the same error. I'm managed to fix it now by uninstalling and reinstalling but i still need help with the pictures.
Thanks
Then either there's a bug in the theme or you're making a mistake when editing the theme template file.
blakemoore123
Member
Posted 12 months ago #
In the theme i am editing the index.php file. Is that correct?
blakemoore123
Member
Posted 12 months ago #
Okay, I've edited the file okay now but there still is no change?
blakemoore123
Member
Posted 12 months ago #
It's working!! thanks guys!