May 4, 2011

Post title troubles | RSS Retriever | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Post title troubles
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
October 18, 2023
4:19 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline

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%

…?

October 18, 2023
5:30 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

%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.

October 19, 2023
4:38 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline

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. 

October 19, 2023
5:49 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I've added your feed. Here is the original post title:

Login to see the code

And here's the post I got when I pulled the feed:

scr.gif

Could you please tell me what exactly is wrong with it?

October 20, 2023
1:13 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline

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:

Login to see the code
<title>Kid Francescoli til Parkteatret</title>
<pubDate>Wed, 18 Oct 2023 11:15:56 +0200</pubDate>
<description>Etter en utsolgt verdensturné (over 200 konserter i Europa, USA og Asia), og hits som «Nopalitos» (2021), «Blow Up» (2014) og «Moon» (2017), er den Marseille-baserte produsenten og multiinstrumentalisten ivrig etter å spille sitt siste album, ´Sunset Blue', live. Denne fine samlingen av låter hedrer hans middelhavsrøtter med elegante popmelodier.</description>
<guid>(…)</guid>
<link>(…)</link>
<dc:creator>All Things Live Norway</dc:creator>
<image>
<url>(…)</url>
<title>Multitalentet Mathieu Hocine, også kjent som Kid Francescoli, kommer til Parkteatret 22. februar med sin samling av sjelfulle elektronika-låter.</title>
<link>(…)</link>
</image>
</item>

Re: Synonymizer

Using the synonymizer syntax |My Traveling Site| could be helpful, but I'd have to know how to escape the pipe symbol, so I can match that, too. 
 
The problem is that "My Traveling Site" is a name that will often be used in the post itself, so I don't want to remove it everywhere, just in the instances (meta title or not) where it is preceded by a pipe. I.e. "| My Traveling Site", but not "- My Traveling Site"
 
Is there are preferred and reliable way to do that?
|| My Traveling Site?
|\| My Traveling Site?
| '| My Traveling Site'
October 20, 2023
1:18 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

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.

October 20, 2023
1:50 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline

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? 

October 20, 2023
2:12 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I see it now. The image title was used instead of the post title. The <image> tag is not a standard RSS tag and this caused the problem. It will be fixed.

October 20, 2023
2:47 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline

I see … You are right.

Login to see this link, <image> is an optional sub-element of <channel>, not of <item>, so normally wouldn't appear there. I didn't even pick up on that until you said it was non-standard.

Thanks for looking into it.

October 20, 2023
4:31 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
10sp_Permalink sp_Print
0

I made a fix to handle the feeds like yours. Please update the core of your plugin in RSS Retriever->General Settings. It should work properly now.

October 20, 2023
5:48 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline
11sp_Permalink sp_Print
0

That was fast! Thank you. That helped fix it.

But also there's something buggy about Advanced > Extract full text articles > Use Custom settings, because I couldn't get rid of the problem of feeds where that was active.

October 20, 2023
5:51 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
12sp_Permalink sp_Print
0

Could you please provide a more detailed description of this problem?

October 20, 2023
6:11 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline
13sp_Permalink sp_Print
0

There's not much to say:
If Advanced > Extract full text articles was set to Use Custom settings I had the same problem as before.

October 20, 2023
6:19 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
14sp_Permalink sp_Print
0

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.

October 23, 2023
3:58 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline
15sp_Permalink sp_Print
0

For this, I am just going to refer you back to my first post in this thread and your first reply. 

At any rate, I have a somewhat working solution for now, so am not going to spend any more time pursuing further fixes.

October 23, 2023
4:06 pm
Avatar
CyberSEO
Admin
Forum Posts: 3945
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
16sp_Permalink sp_Print
0

This cannot be fixed because it's a feature, not a bug. If you want to remove the "| Site name" part, you should set the following rule in your synonym table:

Login to see the code

Please be sure to check this new article about the built-in Synonymizer/Rewriter: Login to see this link

October 23, 2023
5:05 pm
Avatar
nordtomme
Member
Members
Forum Posts: 9
Member Since:
October 18, 2023
sp_UserOfflineSmall Offline
17sp_Permalink sp_Print
0

Thank you. That's very helpful.

Forum Timezone: Europe/Amsterdam

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, creightonnick0

Administrators: CyberSEO: 3945