Answer the question
In order to leave comments, you need to log in
How to add additional settings to a Wordpress theme?
My task is to implement the ability to add elements from the admin panel to a two-dimensional array. Something like an image and a link. And then display these pictures with links on the main site. Since I am only a copy-paste master in PHP, I ask for your help.
Answer the question
In order to leave comments, you need to log in
Create a custom post type
generatewp.com/post-type
- here you will have an interface for adding an image and a link.
You can remove everything superfluous there except for the title (visual, comments, etc.) - a link, and a picture can be added as a post_thumbnail. The interface does not need to be coded.
wp-kama.ru/function/the_post_thumbnail
Or take a fucking class
https://github.com/rilwis/meta-box
and do everything as you want and quickly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question