Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom “Featured Image” Tag Not Working As Expected #942

Closed
jgorin-playeasy opened this issue May 21, 2024 · 0 comments · Fixed by #944 or #933
Closed

Custom “Featured Image” Tag Not Working As Expected #942

jgorin-playeasy opened this issue May 21, 2024 · 0 comments · Fixed by #944 or #933
Assignees
Labels
Priority-Medium Expected resolution time - up to 1 month. small (1-3h) This label is used for issues that can be completed within 3 hours or less.

Comments

@jgorin-playeasy
Copy link

Issue Title: Custom “Featured Image” Tag Not Working Properly

Description: When using the custom tag for “Featured image” during post imports, the specified custom value is not utilized. Instead, the placeholder [#item_image] is always used as the featured image. This unexpected behavior does not allow using custom paths for featured images.

Steps to Reproduce:

Configure the feedzy-rss-feeds plugin to import posts.
Add a custom tag for “Featured image” in the feed settings.
Import a post with a custom image URL based on the specified custom tag.
Observe that the custom value is not used, and [#item_image] is used for the featured image.
Expected Behavior: The plugin should correctly utilize the custom value provided for the “Featured image” tag during post imports.

Potential code issue:

$default_img_tag = ! empty( $import_featured_img ) ? '[#item_image]' : '';

When changing the above line to
$default_img_tag = ! empty( $import_featured_img ) ? $import_featured_img : '';

The correct custom image path is used instead of [#item_image]

Additional Information:

Plugin versions:
Feedzy RSS Feeds Lite version: 4.4.8
Feedzy RSS Feeds Premium version: 2.4.5

WordPress version: 6.5.3

image
@vytisbulkevicius vytisbulkevicius added the Priority-Medium Expected resolution time - up to 1 month. label May 23, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel added the small (1-3h) This label is used for issues that can be completed within 3 hours or less. label May 27, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel linked a pull request May 27, 2024 that will close this issue
6 tasks
@vytisbulkevicius vytisbulkevicius linked a pull request May 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority-Medium Expected resolution time - up to 1 month. small (1-3h) This label is used for issues that can be completed within 3 hours or less.
Projects
None yet
3 participants