kaplunkiigirl
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb] Breadcrumb content missing on posts pageYou’re very welcome. Review written.
Forum: Plugins
In reply to: [Breadcrumb] Breadcrumb content missing on posts pageThank you, that appears to have fixed the issue.
Forum: Plugins
In reply to: [Breadcrumb] Breadcrumb content missing on posts pageYes, I mentioned in my original post that I was customising the breadcrumb Blog settings, not the Page settings, as the linked page is indeed my posts page.
I only tested the Page template settings because you suggested it, and I thought perhaps this was somehow connected to the posts page breadcrumb rendering incorrectly.
Adding and removing breadcrumbs elements from both the Pages and Blog breadcrumb template settings has no effect on this issue on this specific page.
I have set values for every single type in the Breadcrumb settings, and they work as expected on every page – posts, pages, category archives – except for the linked page which is my Posts page, for which I have set a breadcrumb template for the Blog page, with Home followed by Custom Text.
Other settings for the Blog breadcrumb template don’t make any difference to the visibility. Updates to all other templates work as expected.
If I change the Posts page to another page in the Reading settings, the breadcrumb appears on the original page.
This page https://wisdomstirring.com/articles/astrology/ uses the exact same template (it’s a category archive) and the breadcrumb element displays correctly, using exactly the same code as on the Posts page, that does not display.
Only the Blog template refuses to display, on the page designated as the posts page in the Reading settings.
Please keep the suggestions coming.
- This reply was modified 1 year, 3 months ago by kaplunkiigirl.
Forum: Plugins
In reply to: [Breadcrumb] Breadcrumb content missing on posts pageYes, that is still set up as it was before.
In my case I have Home > Post Ancestors > Post Title, but I also tested it with the settings exactly the same as yours, and still nothing shows.
Forum: Plugins
In reply to: [Breadcrumb] Breadcrumb content missing on posts pageYes, I saw that notice and clicked the link when it first appeared, and ran the data migration. Deactivating and reactivating the plugin does not show any message, because I already actioned it.
I’m wondering if I somehow managed to break the data for that specific link by clicking away from that page before the migration was complete. Is that possible? Or if I had a timeout mid-migration that may have broken something?
Is there a way to trigger the migration process to run again manually?
I’m comfortable editing my database if need be. What do I need to do to fix this entry?
Thanks.
Forum: Plugins
In reply to: [WP Sitemap Page] Deactivating plugin loses list of excluded pagesYes, @artgoddess that would be my preferred behaviour too.
Forum: Plugins
In reply to: [WP Sitemap Page] Deactivating plugin loses list of excluded pagesHi Tony,
Thanks for explaining that this is an intended feature.
It’s an unfortunate behaviour as it stands because it makes debugging unrelated issues a right pain in the “you know what”.
Any chance of adding a checkbox, like many other plugins have, to choose to keep the settings, even when the plugin is deactivated?
Thanks,
Nikki
Hi Sergey,
Thank you for your helpful response.
I have made the changes you requested and can confirm that the feed works correctly when the changes are made.
In other words, when I replace
the_excerpt_ss()
withecho get_the_excert( $post_id)
each episode displays its own unique excerpt in the feed, which is the correct expected behaviour.I have also switched back and forth between the two versions of the code a couple of times to make 100% sure that it has the desired effect, which it does.
Here’s my modified code for reference for lines 127 to 139:
// Description is set based on feed setting if ( $episode_description_uses_excerpt ) { ob_start(); //the_excerpt_rss(); echo get_the_excerpt( $post_id ); $description = ob_get_clean(); } else { $description = $content; if ( isset( $turbo_post_count ) && $turbo_post_count > 10 ) { // If turbo is on, limit the full html description to 4000 chars $description = mb_substr( $description, 0, 3999 ); } } $description = apply_filters( 'ssp_feed_item_description', $description, get_the_ID() );
I went looking for uses of the
ssp_feed_item_content
filter in my site files, as I suspected that may have been connected to the issue, but I could not find any obvious references to it.I didn’t go through my entire site with a fine-tooth comb to be 100% sure, but I can confirm that I have not made use of this filter myself.
Thank you for your help with this. Please let me know what else I can do to assist you in narrowing down the problem.
Nikki
- This reply was modified 3 years, 5 months ago by kaplunkiigirl. Reason: Added code backticks
Can you please explain exactly where this episode ID is stored against the episode? Is it in the postmeta table in the database? I want to go and find these IDs for each of my episodes, confirm that they are and the same and then make them unique to confirm that it does actually fix the problem.
We are going to want to keep duplicating our episodes to avoid having to set up the page content each time, so I need a way to make these unique that doesn’t require starting from scratch each time.
I fixed the bug.
The issue is that the code for the feed description does not have access to the post ID at the point where it is run, probably because of the Episode Content code above it.
I did not thoroughly debug this code to identify exactly what’s going on, just enough to figure out that when the the_excerpt_rss() function runs, it does not have the correct post ID value available to it, and so uses a “blank” value, hence why it was returning the lastest post excerpt. It’s just the last entry in the array of posts.
My fix was simply, in file:
seriously-simple-podcasting/templates/feed/feed-item.phpto move lines 127 to 139 i.e.
// Description is set based on feed setting if ( $episode_description_uses_excerpt ) { ob_start(); the_excerpt_rss(); $description = ob_get_clean(); } else { $description = $content; if ( isset( $turbo_post_count ) && $turbo_post_count > 10 ) { // If turbo is on, limit the full html description to 4000 chars $description = mb_substr( $description, 0, 3999 ); } } $description = apply_filters( 'ssp_feed_item_description', $description, get_the_ID() );
to above lines 121 to 125 i.e.
// Episode content (with shortcodes and iframes removed) $content = get_the_content_feed( 'rss2' ); $content = strip_shortcodes( $content ); $content = preg_replace( '/<\/?iframe(.|\s)*?>/', '', $content ); $content = apply_filters( 'ssp_feed_item_content', $content, get_the_ID() );
and the excerpt displays correctly.
This should help you figure out what’s going on and release a fix for it.
In the meantime, I’ll keep using my hacked plugin to get my RSS feed to display correctly.
Yes, I’m using the manual excerpt field to customise the excerpt for each episode. The except is unique for each episode and is not what is being displayed in the feed. That is coming from the latest blog post excerpt, and when I edit the excerpt for that blog post, it changes the description for all episodes in the feed.
I am using Yoast’s Duplicate Post tool to clone the episodes, but then I am editing the page content and the excerpt to suit the post.
What else can I try?
I also just noticed that when I switch to using the post content it works as expected, pulling in the content from the correct episode post.
So the issue seems limited to when I use the post excerpt.
Hi Kelly,
I’m using SSP 2.7.2, which I believe is the latest version.
I inactivated all customisations, deactivated all plugins including the redirections (apart from SSP) and switched to the Twenty Twenty One theme all at the same time, and the problem persists.
We do have a subdomain for an old podcast website at podcast.networkmarketingaustralia.com.au, could this be confusing the plugin at all?
That’s the only other explanation that I can think of, so I’d really appreciate your help to figure out what’s going on.
Thanks,
Nikki
- This reply was modified 3 years, 5 months ago by kaplunkiigirl. Reason: Fixed typo
Forum: Plugins
In reply to: [Seriously Simple Podcasting] Feed Descriptions Showing Latest Post ExcerptHi Craig,
I’m having a very similar issue, but it’s not resolved by changing the theme to Twenty Twenty One.
Do you want me to start a new thread?
Thanks,
Nikki
Brilliant, thank you so much!