Making slight change to single.php (post) file
-
Hello everyone! I’m going to try to make this as easy as possible by taking screenshots.
I am using dessign.net’s wonderful Swiss Design Theme.
I plan on changing some things to the CSS but I should be able to do that myself… My problem is I have a slight problem making a change to single.php file. I do not have any experience with PHP so apologies in advance…
This is what the front page looks like:
Great!
When I click one of the links to the portfolio which is a post under a certain category it looks like this:
Not so great. I’m wanting to remove the “small feature” images from the left so I can make the right container the full main area. The CSS I can handle, however…
When I took out this code (which is the right one because when I take Featured Small out the space is still there but it doesn’t grab the posts) from the single.php file.
<?php global $post; $myposts = get_posts('numberposts=5&category_name=Featured Small'); foreach($myposts as $post) : setup_postdata($post); ?>
I get this page and error webpage:
Parse error: syntax error, unexpected T_ENDFOREACH in /home/jeffreyf/public_html/wp-content/themes/SwissDessign/single.php on line 63
Any suggestions?
Website is Jeffreyfrankens.com if anyone needs to look at it.
Thanks a lot everyone!
- The topic ‘Making slight change to single.php (post) file’ is closed to new replies.