I've created a table linked to my phpmyadmin wich works fine.
I would like to add an extra field with an image. I have uploaded images to my wp medialibrary but dont know how to connect. I dont want a manual wpdatable.
You can add one more column in that table in database and insert some numbers or string(if you want different images then you have to insert different data for example 1,2,3.. and if you want same pictures for every row then insert same value for example 1,1,1...). Then when you make table from that query, you can go in column settings of that column which you made with numbers and in Conditional formatting make rules if cell value = 1 then Set cell content and in last filed insert img tag like this
<img src="path_to_the_image_on_your_site" >
You can add rules how many you have different images.
Just bought WpDatatables. Looks good!
My problem is images.
I've created a table linked to my phpmyadmin wich works fine.
I would like to add an extra field with an image. I have uploaded images to my wp medialibrary but dont know how to connect. I dont want a manual wpdatable.
HI Carl,
Thank you for your purchase.
You can add one more column in that table in database and insert some numbers or string(if you want different images then you have to insert different data for example 1,2,3.. and if you want same pictures for every row then insert same value for example 1,1,1...). Then when you make table from that query, you can go in column settings of that column which you made with numbers and in Conditional formatting make rules if cell value = 1 then Set cell content and in last filed insert img tag like this
<img src="path_to_the_image_on_your_site" >
You can add rules how many you have different images.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables
Thank you Milan!
The images are all shown in the same size and quite small. How do I change size/make them bigger?
Thanks again for fast reply. Awesome application!
Hi Carl,
You are welcome.
You can change size of the image throw img tag like this:
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables