10:08 am
October 10, 2023
I have a post item in my JSON like this.
With this setting, the thumbnail of the post will always be added to the library.
As for your second question. Just explain exactly how you want these images to be imported? If you want to store them as some custom fields, you should use the same method as with the thumbnail. If you want to insert them somehow into the body of the post, you need to define their HTML layout in the “Post content” template box. For example:
Login to see the code
Or somehow else, depending on your needs. Here is a good manual for that: Login to see this link
12:29 pm
October 10, 2023
I want to add those images to the media library attached to the post. I don’t want them in the content BCS I’ll code custom template renderer after. I want to reach those images from the custom fields. I added “slideshow_1->slideshow_1” to the Custom Fields section like I did for thumbnail but still the images is not added uploaded to the media gallery nor to the custom image field. This screeshot below form the edit screen of the post.
And this one is represent the settings of the custom filed.
And as a dip note, if I enable “Republish existing posts” the previous thumbnail is not delete from the media library and the new duplicate added. Is there a way to prevent it?
1:56 pm
October 10, 2023
The media library duplication problem when “Republish existing posts” is enabled has been fixed. Be sure to update your plugin on CyberSEO Pro’s General Settings page.
As for your JSON feed. The link to the feed on your site is invalid (file doesn’t exist), as well as the attached one is not well formatted – it’s just a part of the actual feed, not a whole file, so I can’t check it.
10:22 am
October 10, 2023
Hello. Thank you. The duplication problem solved like you said. It works like a charm, good job. The URL is valid but you can’t reach because it’s my localhost in MAMP server like below.
I must say the thumbnail is still duplicated with the settings below:
I think there is not a way to add images to custom images fields, right? Maybe I should add those images to the content and hide them in front-end?
The thumbnails are not duplicated. Please read Login to see this link. There was an issue with removing media library images when republishing posts and it has been fixed. Now, these “duplicates” are just different sized thumbnail images that WordPress generates for your theme according to its layout requirements. Such as medium, thumbnail, large and maybe square, landscape, portrait, etc.
As about adding them to custom fields. You can easily do it as described Login to see this link. Just set your “Custom fields” rule as follows:
Login to see the code
Be sure to use the exact XML tag name as it appears in the Preview Mode (XML Structure) box. Also use the exact name of the custom field you want to store the image URL in.
10:56 am
October 10, 2023
Here are the duplicates of the thumbnails.
Like you said it scaled, but both has same URL: //reframer.net/wp-content/uploads/2023/11/nominal-19-150×150.jpg
But I can live with it. The important one was the actual images, and they are not duplicated anymore.
I already added the necessary rules to my custom fields, but the image custom field is different from the normal string field, and they are not accepting image URLs. Normally they are updated like below:
update_field('key_1234567890123', $attachment_id, $post_id);
But I don't know the attachment_id and post_id and where to add this.
Maybe you have not updated the plugin core. I cannot reproduce your issue here. Export your feed settings to a file and send it to the same email address. But make sure that the actual JSON link is accessible there. The settings you sent me earlier point to a non-existent URL, so I was unable to check your settings.
Regarding your second question. The plugin does not support adding images as attachment IDs (not as their URLs) to custom fields. Could you please share your vision on how this feature should be implemented via CyberSEO Pro’s user interface (the feed settings panel)?
12:22 pm
October 10, 2023
My plugin version is “10.115” Is it correct?
When I disable “Add to the Media Library”, The thumbnail is not duplicated. But content images are not added to the image library that way.
As a suggestion, I would change the label of “Republish existing posts” to “Update existing posts” because drafts remains as draft even after update anymore.
Let me think about the implementation of the feature. If a good idea came up to my mind, I’ll happily share it.
Yes, your version is 10.115 and the fix was made within that version (after its initial release), so if you don’t update the plugin core manually, you’ll have to wait 24 hours for it to be updated automatically.
The plugin republishes the posts, not updates their content. The old post is deleted and a new post is created with a new ID and a new posting date to push it up on your index page. The status of the post remains the same, as requested by a CyberSEO Pro user here: Login to see this link
Most Users Ever Online: 541
Currently Online:
8 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 49
MediFormatica: 49
B8europe: 47
Member Stats:
Guest Posters: 337
Members: 2778
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1592
Posts: 8102
Newest Members:
jimmy.jimmytechsf, leif.nicolaisen.web, rob.bidonenergy, info.wilkens-web, efe966436, air111003-airAdministrators: CyberSEO: 3833