I can’t get the autogenerated description to display on my blog index page. I have checked that in my query I am using the individual post’s ID, not the index page ID.
I have a feeling it is related to me using custom fields for the text content.
Currently I’m using the_seo_framework_description_excerpt
filter for feeding the generator with textcontent from my custom text blocks. (get_textcontent() finds all the text field ACF layouts in the post and then returns just the strings).
\add_filter(
'the_seo_framework_description_excerpt',
function( $excerpt ) {
$excerpt = static::get_textcontent();
return $excerpt;
},
10,
2
);
Then using tsf()->description()->get_description( [ 'id' => $post_id ] )
to output the excerpt on the single blog post page template works fine, and it also outputs nicely in the meta description tags and shows up in admin correctly.
I think the issue lies in that on the blog index page I’m not getting the textcontent from all the posts, but I guess that would be necessary for the autogeneration to be able to do it’s thing.
So my question is – is there a good way to get autodescriptions generated from custom fields data on the blog index page?
]]>I am getting an extra ‘blog’ breadcrumb on individual posts.
I have my site setup with a static homepage. The blog index is called ‘The Library’ at /library/. I have a custom permalinks structure as follows: /library/%category%/%postname%/
This all seems to work fine, except on the individual posts pages, where the breadcrumbs are adding in an extra ‘blog’.
A post in the category (Members’ Consultation) has breadcrumbs as follows:
Home > Blog > The Library > Coffee table > Members’ Consultation
Both ‘Blog’ and ‘The Library’ go to the blog index at /library/.
The Coffee Table category index seems to work fine with breadcrumbs:
Home > The Library > Coffee table
Do you know why this is happening and what I can do about it?
Thank you!
p.s. the theme is fantastic!
]]>I am creating a ‘Projects’ page, that is assigned as my ‘Blog’ Page so all posts are displayed, but I would like to display some intro text using the standard editor on the ‘Projects’ page.
Is this possible?
Thanks
Tony
On my blog index (https://rafael.lv), my social share buttons won’t share the blog index page, but an arbitrarily chosen blogpost (I believe it shares the oldest blog post from that page). I’d like them to share the blog index instead.
I’m using Easy Social Share Buttons pre-packaged from theme Passion Blogger, downloaded from Envato Elements.
Can you help?
]]>My blog index template is home.php but it won’t update whenever I try to make changes on the file. Up until I tried to create a new page and set that as the default Post Page with the url /blog-summary. Since I wanted the url to be /blog, I changed the new Post page url to /blog and deleted the old one. I thought all will be fine but then it changes template again to which I don’t know where it gets from.
I tried deleting both index.php and home.php but the page remains the same. I tried changing file names, changing themes, I tried deleting my local cache, I even removed my caching plugin but it still doesn’t change. The other pages reflect the changes, though. Can someone give me a suggestion on how I can use /blog url? Thanks in advance for the suggestions (sorry if my engrish is bad, i tried to explain it the best I could :c)
]]>I’ll admit, I’m a WordPress newbie, so I’m probably making some very basic mistakes, but at this point, I’m completely confused.
The site has a static homepage as well as other pages, but currently no posts aside from a test one.
Any pointers in the right direction would be fantastic. I don’t want to post any current code because quite frankly I’d rather scrap the whole lot and start from scratch.
]]>Thank you!
www.legooseylu.com
]]>