Change Order of Sections Using Custom Fields

Have 5 custom fields: the first 4 are your sections and the last would be your order identifier. CASE 1 If you want to have the order simply revsered have the last field be a dropdown with “normal” or “reversed”. (You could even say “random”… the world is your oyster) $s1 = ‘<section id=”1″>$customfield1</section>’; $s2 … Read more

Custom fields with wordpress

You can try the date() function: $date = get_post_meta($post->ID, ‘event_start_date’, true); $day = date(‘d’, strtotime($date)); //01-31 Another way will be DateTime: $date = get_post_meta($post->ID, ‘event_start_date’, true); $date = DateTime::createFromFormat(‘Y-m-d’, $date); $day = $date->format(‘d’);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)