4:19 pm
October 18, 2023
Hi,
I'm struggling to get the post title correct when syndicating an RSS feed. I can't seem to find an option to grab just the text I need.
I have failed trying:
%post_title% – this gets the meta title of the post, which includes the site name (and so makes for a bad post title)
%xml_tags[title]% – this gets the title from the RSS feed, but also the title of the post's image, as they are both wrapped in
I also tried to experiment with the GPT shortcode and the JSON format used elsewhere with no luck/skill.
Is there some kind of syntax or setting that allows me to …
- grab h1.class_name from the post,
- get only the first title tag from the xml, or
- edit out the | pipe separator and everything that follows when I use %post_title%
…?
%post_title% – this gets the meta title of the post, which includes the site name (and so makes for a bad post title)
This is not correct. The %post_title% shortcode returns the exact title of the post from the feed. You can check this by opening the feed in your browser. Some plugins like AIOSEO add the site name to the post titles in the feed, so you get them like this.
In RSS Retriever, you can use the built-in Synonym Table to remove the site name. For example, if your post title looks like this:
"Museums of Amsterdam - My Traveling Site"
The rule in your Synonym Table must be follows:
Login to see the code
It will remove the site name added by AIOSEO to the title.
4:38 pm
October 18, 2023
Thanks. I will try your synonym suggestion.
But while I do, I did check the feed in my browser, and unless I'm missing something, there does seem to be something buggy about the functionality you describe.
See screenshots:
- Login to see this link (maybe I've set something wrong?)
- Login to see this link)
- Login to see this link
It may not be the meta title of the post I'm getting, but it looks a lot like it.
Anyway, I'll check back in once I have tried using the synonym table.
1:13 pm
October 18, 2023
Thanks. Two answers below.
Re: Original post title
No, that is not the original post title from the feed, as you say. Rather it is the title after having been parsed by the plugin.
It is a concatenation of the post title and the item image's title (i.e. caption) in the original feed.
If you check out the original feed, you will see that the relevant xml originally looks like this:
Re: Synonymizer
Please export your feed settings to a file and send it to Login to see this link along with instructions on how to reproduce the problem described above, because when I added your feed and checked it, I got the result shown in my previous post. So I need to be able to reproduce your case on my server. Also, please note that if you are using AIOSEO or similar plugins, they may change your post title in the way described in your first post. This is not something that can be fixed on the RSS Retriever side.
1:50 pm
October 18, 2023
I will send that by email, but please note:
Login to see the quote
Yes, exactly. You have reproduced the issue.
If you compare the result shown in your previous post to the original feed (in a browser), you will see that your result is wrong.
I am not using AIOSEO.
Also: Is there a way to escape the | symbol in the synonymizer?
2:47 pm
October 18, 2023
5:48 pm
October 18, 2023
6:11 pm
October 18, 2023
No, this is not the same issue. This is a completely different problem. When you extract full-text articles, the plugin parses the original HTML page. Just open any page from your feed in a browser and look at it's source code. You should see something like this:
Login to see the code
The plugin will use the title of the original page as the post title.
3:58 pm
October 18, 2023
Most Users Ever Online: 541
Currently Online:
2 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2852
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1639
Posts: 8349
Newest Members:
torontomark48, info.ckmedianetwork, contact.mybeautystar, samuelbodde, john.prush, creightonnick0Administrators: CyberSEO: 3945