Can't see the entire post
Support Area › Forums › Epic › Can't see the entire post
- This topic has 5 replies, 2 voices, and was last updated 11 years, 8 months ago by Bill Robbins.
-
AuthorPosts
-
August 8, 2012 at 15:50 #7050Sean BungerParticipant
Hi Bill,
Love the Epic theme, just started to use it to improve our church website. I’m a novice who doesn’t know any code so I’m hoping you can help me with a few problems I’m running into.
In posts, I’ve set up a category for our News Updates. The problem is that when the posts are listed on the page together you can’t read the whole post, it just ends. I’d like to have a continue.. or read more at the end that takes someone to the entire post. I see that it goes to the entire post on a single page if you click on the title of the post.
The second issue is in the staff area. When the staff are listed on the staff page, the biography box cuts off the text in the same manner as the posts. Once again clicking on the staff name takes me to the whole bio.
Any help for this novice would be much appreciated.
Sean
August 8, 2012 at 16:37 #7052Bill RobbinsModeratorSean,
Thank you for your business first of all. I’d be glad to help you out.
Category Excerpts
You are correct that the full post isn’t displayed on category archives. Only what WordPress calls the “excerpt” is listed. That can either be entered directly into the excerpt box when creating a post, or it’s the first 55 words of that post.
You can change the category archives to show the full post though. Here’s how to do that:
- Go to the appearance section and select edit to open up the theme editor.
- From the list of files on your right, choose archive.php and look for this spot:
- Replace that with this:
- Save your changes.
That should cause the full content of your posts to be displayed in the archive.
Staff Listings
For the staff listing it’s the same situation. The only difference is the layout is set to a certain height, so the content that’s displayed next to the staff member won’t be taller than their image.
That said, you can certainly change that if you’d like to. Here’s how:
- Open up the theme editor again and this time select taxonomy-staff-group.php from the list of files on your right.
- Make the same code swap you made earlier and save your changes.
- Also edit the style.css file. Scroll down to the very bottom and paste this:
article.staff-list { height: auto; }
- Save your changes.
That will let you display the full bio next to each staff member and also not fix the height of each listing.
If you run into trouble or have any questions, just let me know.
Thanks again,
BillAugust 9, 2012 at 10:53 #7058Sean BungerParticipantBill,
Thanks for your response, it worked perfectly. Now I’ve run into another issue. We have the share this plug in and it shows up great on the posts, however the share buttons are also showing up at the bottom of each staff bio, about the social links that are a part of the staff template. I realize it’s a third party plug, but is there something to that we can change so that this doesn’t show on the staff area. One thing we tried was turing off the auto share for each post and just adding html code for each individual post. It got rid of it showing in staff area, but only showed one share button on the individual post it was on.
Thanks for any thoughts or help with this.
Sean
August 9, 2012 at 21:50 #7070Bill RobbinsModeratorSean,
Great question. Most plugins like that use what’s called a “filter” to add the share buttons to the bottom of a function called the_content.
There may be a few options for you. Some sharing plugins–the sharing that’s included with the WordPress.com Jetpack plugin is one–allow you to specify what type of content the sharing buttons are visible on. You can choose to display it on posts and pages, but not staff for example.
The other option is a template tag. If that’s an option you can specify in the theme where to use the sharing.
If you don’t see either of those options, let me know which sharing plugin you’re using and I’ll take a look and see if there’s another way.
Thanks,
BillAugust 10, 2012 at 10:15 #7074Sean BungerParticipantBill,
I added the jetpack plug in and really like the sharing and all the other widgets it offers. I configured it to show on Front Page/Archive Pages/Search Results, and posts, pages, podcast, leaving the staff unchecked. It still showed up on the staff area. When I uncheck the Front Page/Archive/Search it’s not on the staff. However, then it also doesn’t show on the category page I have set up as news. I assume that the staff page is also an archive or something related to that.
Any ideas on how to not have it show in staff yet still be on the archived?
Thanks again for your help, it’s been wonderful.
Sean
August 10, 2012 at 11:15 #7076Bill RobbinsModeratorSean,
I’m actually using a few of the Jetpack components on the new version of our site, specifically the commenting, and their Twitter widget. It has some good options.
You are correct that the staff listing is an archive. They must not have the plugin set so it takes in account the post type (staff, page, post) when it comes to an archive like it does for a single view.
We can get around that though. The easiest thing to do would be to switch the taxonomy-staff-group.php file we edited earlier back to the_excerpt from the_content.
That will still make the post too short though. The way to get around that is to just copy the post content and paste it into the excerpt box. Since custom excerpts can be any length, you’ll display all the staff member’s bio.
If you don’t want to copy the text, you can add a function to make the default length of your excerpts quite long so that all the text will be displayed. Here’s how to do that:
- Go to the theme editor again, but this time select the functions.php file.
- Paste this at the very bottom of the file, right above the
?>
:
- Save your changes.
That should give you an excerpt length that’s long enough to cover their full bio. If you need it to be longer, change the
500
to a larger number. That will change the number of words used.Let me know if you have any trouble or questions.
Enjoy your weekend,
Bill -
AuthorPosts
- The topic ‘Can't see the entire post’ is closed to new replies.