Reply To: featured_image in post published via API only showing after pressing “Update”
WordPress Forums » Developing with WordPress
by hbrobjerg
6h ago
The issue was the theme “Dante by Swift Ideas.” This theme adds many “Meta options” to the editor as seen here: However, some of these metadata require to be set for certain functions to work. In this case, “sf_detail_type” must be set to “image” for the featured image to show in posts. Hence, I added ‘meta’ => $metaData, where $metaData[‘sf_detail_type’] = ‘image’; For this to work with REST API, I had to build a custom plugin to add this metadatum to be accepted: <?php /* Plugin Name: Add meta tags to REST-API Description: Adds the specified meta tags to the REST-API for support ..read more
Visit website
Reply To: featured_image in post published via API only showing after pressing “Update”
WordPress Forums » Developing with WordPress
by hbrobjerg
7h ago
I’m about to have this resolved, just an hour of work more. It relates to either a plugin or the theme requiring additional metadata for displaying the featured image. I will share solution asap ..read more
Visit website
Reply To: Auto/Copy tags in description when creating new post?
WordPress Forums » Developing with WordPress
by bcworkz
7h ago
It is possible to automatically assign tags when a post is saved. But it’s not clear how this automated process would know which tags to assign or from where to copy from. I’m not even sure where this description field is coming from. It’s not a default WP field, so I suspect it was added by a plugin. To automatically modify fields added by a plugin, it’d be a good idea to get suggestions from the plugin’s developers through their dedicated support channel ..read more
Visit website
Reply To: Conditionals, users and pages – which is best design approach
WordPress Forums » Developing with WordPress
by bcworkz
7h ago
threadi’s suggestion sounds appropriate, I just want to emphasize the posts recommendation since you were talking about pages. WP pages do not have categories associated with them but posts do. It is possible to associate categories with pages with a bit of added code or a suitable plugin. It’s also possible to create other post types or taxonomies for any sort of data schema you might desire, again with added code or a suitable plugin. But if you want stay with the default WP features without further programming, posts and categories (and/or tags) should work for you ..read more
Visit website
Reply To: google fonts loading
WordPress Forums » Developing with WordPress
by roberto21
9h ago
As I said, I am experimenting with block theme. The site in my profile is the “public” one, is an old implementation and uses a classic theme (tesseract). To experiment, I am using the free hosting at infinity.com, and it was my intention to try to move that public site to a block theme. In this test environment I am using WP 6.5.2 and Frost theme. Since it works in your test, maybe in my case there is some incompatbility with one or more plugins. PLease don’ forget I am really a roookie trying to learn… https://drive.google.com/file/d/1FYj8fz-G6VKh0Uw1vpThoSzloXiCRX46/view?usp=sharing https ..read more
Visit website
Reply To: Create a loop template (using blocks) and use it inside WP_Query
WordPress Forums » Developing with WordPress
by threadi
10h ago
Why do you build it yourself and not use the query loop block that is already in the block editor: https://wordpress.org/documentation/article/query-loop-block/ – I think that does everything you need ..read more
Visit website
Reply To: google fonts loading
WordPress Forums » Developing with WordPress
by George Appiah
10h ago
and unfortunately I have to confirm it does not work in Frost, It should… it certainly worked for me. The first thing I do before answering most questions is to try to replicate the user’s environment. So I installed and activated the Frost theme before taking the screenshots I provided. You may create an instant test site at TasteWP.com (no sign up required) to test this. I just did this (for the second time), and yes, the feature is available when using the Frost theme. But note that, as I mentioned in my first post, this is a WordPress 6.5+ feature. If you’re testing this on the site in y ..read more
Visit website
Featured_image in post published via API only showing after pressing “Update”
WordPress Forums » Developing with WordPress
by hbrobjerg
12h ago
I have migrated a working code for posting via the REST API from one wordpress page (“Page 1”) to another wordpress page (“Page 2”). On Page 1, everything works. Theme is “AstraVersion: 4.6.13 by Brainstorm Force“ On Page 2, everything works EXCEPT this; the featured image is not showing in the new post. However, all it takes to make it show is to go to the post editor and press “Update,” nothing else, i.e., the image is already added to the post as the featured image, but for some reason not showing in the post before the “Update” button is pressed manually. ChatGPT suggests that some ki ..read more
Visit website
Reply To: Could not change text color when edit WordPress sides pages.
WordPress Forums » Developing with WordPress
by threadi
12h ago
To answer your question, we would need to know more about what you work with. Which editor do you use to edit your texts? Which theme do you use ..read more
Visit website
Reply To: Conditionals, users and pages – which is best design approach
WordPress Forums » Developing with WordPress
by threadi
12h ago
No, the 2nd way creates duplicate content and does not make sense. Information should be accessible under one URL and not under several. In WordPress terms, I would recommend working with categories for posts. Users who are authorised assign posts to one or more categories. Visitors in the frontend then find the information relevant to them by using the category that interests them. This is WordPress standard and possible without further programming ..read more
Visit website

Follow WordPress Forums » Developing with WordPress on FeedSpot

Continue with Google
Continue with Apple
OR