How can I use custom properties to set different background on different pages?

You get custom field values with get_post_meta(). WordPress has a function called wp_localize_script() that’s used to, as the name suggests, localized scripts by creating a javascript object from a PHP array. When you use wp_enqueue_script() to add a script to the front end of wordpress, you can “localize” it by calling wp_localize_script() afterwards. If you … Read more

Custom Field box history

I did a search for this phrase: “wordpress remove custom field value from the drop down menu”. A bit verbose perhaps, but it got me this link: http://sumtips.com/2011/03/add-delete-edit-custom-fields-wordpress.html From that page, the author states that you can do one of the following: Delete Custom Field from all posts. Delete it from the database. Delete it … Read more

Inserting data into MagicFields using mysql queries

I had the same problem but I was successful importing from an self produced xml (for the postmeta). <wp:postmeta> <wp:meta_key>telefono</wp:meta_key> <wp:meta_value><![CDATA[$tel_azienda]]></wp:meta_value> </wp:postmeta> The problem was that after that the data were not available to use with MF, I’ve solved it with this mysql query: INSERT IGNORE wp_mf_post_meta (`id`, `group_count`, `field_count`, `post_id`, `field_name`, `order_id`) SELECT `meta_id`, … Read more