add meta box considers the selected option as post parent

Actually the problem is that i was giving the select option a name of “parent_id”, which for some how automatically used as post parent, but once i changed it to other name it worked. Working code: <?php function hfx_register_meta_boxes() { add_meta_box( ‘select_hfx_workshop’, __( ‘Workshop for’, HFX_DOMAIN ), ‘hfx_select_workshop_parent_meta_box’, ‘forum’, ‘side’,’core’); } add_action( ‘add_meta_boxes_forum’, ‘hfx_register_meta_boxes’ ); … Read more

add different custom fields value to post class if permalink or index

ok have a working fix, I used an if else statement combined with is_home to change <article id=”post-<?php the_ID(); ?>” <?php post_class(get_field(‘custom_field_X’)); ?> to <?php if ( is_home()) post_class(get_field(‘custom_field_X’)); else post_class(get_field(‘custom_field_Y’)); ?>> which has removed the custom_field_x settings from the permalink pages fo the posts. maybe there is a more elegant solution out there but … Read more

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