Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Rodrigo8 on "Checkbox above textarea in array"

$
0
0

I want to make a very simple thing that i am not able to find around... It is about functions.php in a wordpress site.

If i am not able to make myself understand... simply, how do i put checkboxes in ¿functions.php?

This is an complete array that works on editing a post in wordpress, it creates a meta box.

'Reproductores V.O.S.E.' => array (
array ( 'primerovose', 'Embed Netu:', 'textarea' ),
array ( 'segundovose', 'Embed Vk:', 'textarea' ),
array ( 'tercerovose', 'Embed Played.to:', 'textarea' ),
array ( 'cuartovose', 'Embed Firedrive:', 'textarea' ),
array ( 'quintovose', 'Embed Sockshare:', 'textarea' ),
array ( 'sextovose', 'Embed Vimple:', 'textarea' ),
array ( 'séptimovose', 'Embed Mail.Ru:', 'textarea' ),
),
);

Vk, played.to, firedrive, etc. are servers. I put the embed of the server in the textarea, but as you can see every text area has a different server. I don't want it that way. I want that the servers can repeat in 2 or more textareas, so i think checkboxes are the best option for it, so i want to be able to select the servers when i am editing the post trough checkboxes.

Other way to say it: This brings me a text area with the text (example) "Server Netu" above it. But instead of that above text i want checkboxes so i can use select other servers like "Server Vk", "Server Firedrive" etc., but still having the textarea below it.

¿how is this possible? If i wasn't able to make myself understand... simply, how do i put checkboxes in ¿functions.php?


Viewing all articles
Browse latest Browse all 8245

Trending Articles