How to assign images to a post NOT using default gallery block?

[ad_1]

I know you can attach images to a post using the gallery gutenberg block. I was going to use the ACF gallery field but it’s a pro feature. Right now I’m adding images to my post with the gallery block and hiding it on the front-end. Is there an easier way of adding images to a post without having to add the gallery block to the post? I know all images have an ID. **Can I just edit the metadata of the image and assign it to the post?**

Asking because I created my own image gallery and using PHP to get the images for the post and display them in the gallery, and right now I’m simply hiding the default gallery on the front-end so only my custom gallery shows up.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer