- This topic has 1 reply, 2 voices, and was last updated 3 weeks, 1 day ago by .
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Tagged: php hooks
We're trying to add a preload link to our head for an image field added via a custom block. To do this I thought it might be easiest to save the image ID or URL to a post meta field and then fetch it when the page is loading. Bit of a hack as outside the main loop but should work.
Unfortunately I can't find an easy way of getting the image field ID on save. I can hook into the render template and get it out from there but it feels like there should be an easier way that will run on save.
It seems like your question is a bit technical and may relate to programming or web development. If you're looking to filter or block a specific value when saving data or adding an image as a preload link in a web application, the approach can vary depending on the technology stack you're using. Here are some general concepts that might guide you:
© 2023 WPEngine, Inc.