Forum Replies Created
-
AuthorPosts
-
August 10, 2014 at 10:50 pm in reply to: Blog page first post not being modified by filter function #118136clareMember
What code would you need to see? I would be happy to provide it if I can.
August 10, 2014 at 2:50 pm in reply to: Blog page first post not being modified by filter function #118094clareMemberI am using the Genesis child theme Enterprise Pro 2.0.1. I did not write this template, StudioPress did 🙂
The code I posted above is just a filter that I added to the "excerpt_more" filter hook. It modifies the default [...] that comes after a blog post excerpt, and instead replaces it with a link that says "Continue Reading".
The first post is definitely showing some sort of excerpt. It is certainly not the full post. The length of the excerpt for the first blog post is 86 words (more than the standard 55 words). The length of the full post is 695 words. So clearly, it is some kind of excerpt.
Ok I just checked, and what the first blog post excerpt is showing is the first complete paragraph of the post.
August 10, 2014 at 10:45 am in reply to: Blog page first post not being modified by filter function #118081clareMemberYes, Genesis->Theme Settings-->Content Archive section has a drop down menu in which I have selected "Display post excerpts".
For the actual blog page, if I click on "edit page", in the Page Attributes section, the Template is set to Blog.
As I was saying before, the excerpts for every single blog post work perfectly...except for the first blog post.
August 10, 2014 at 9:50 am in reply to: Blog page first post not being modified by filter function #118069clareMemberI tried to post a link to a screencap of my blog page, but for some reason the forum is not letting me post links. I even used the "link" toolbar button. I guess I do not have enough forum posts yet to post links.
August 10, 2014 at 9:12 am in reply to: Blog page first post not being modified by filter function #118066clareMemberI'm sorry, I should have included some more information in my original post.
I am using the Enterprise Pro child theme version 2.0.1 and WordPress version 3.9.2.
genwrock, I am not sure what the "magazine template" is. I am sorry but I cannot give a direct link, not because I don't want to, but because it's a development site that is password protected. However, I have attached a screenshot of the blog page to give you a look at what I am babbling about.
Lauren, the function I have created, using the_excerpt() hook, is working for every blog post except the first blog post. So because it is working, I do not think I need to be creating more functions.
I have a feeling that there really is something special or unique about the first post on the blog page in the Enterprise Pro theme, because I have counted the words in each excerpt on my blog page. Every excerpt has 55 words, which I know is the default size for the excerpt by reading this page . However, the very first blog post on the blog page is 86 words, which is longer than the default 55 words. I have not changed the default size of the excerpt. Why is this the cause only for the first blog post on the blog page? It seems that something is going on that processes the first blog post differently than every other blog post.
And thank you again for any input or advice on this baffling issue.
clareMemberHi Neil,
I am trying to do the same thing as Draceadan. I've copied your code exactly as written into my functions.php file, but it is still not working for me. What I mean by that is, nothing happens. It is as if the filter did not get called at all.
I use a Genesis child theme called Enterprise-Pro. I am not sure why your code example is not working. The filter hook you use in the example is called "excerpt_more". Is it possible that Enterprise-Pro does not have this filter hook? Or do all Genesis child themes have this filter hook?
Thank you for your help. -
AuthorPosts