Can you generate a featured image from two images from custom fields?
Can you generate a featured image from two images from custom fields?
Can you generate a featured image from two images from custom fields?
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
Managed to get the custom field method to work, which saves alot of headache in the long run, solution was simple – <?php post_class(get_field(‘the-field’)); ?>
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
Is there a way to save different data when USER interacts with the same POST?
Custom meta POST request fired twice when updating a post in Gutenberg
Order 2 meta_queries differently in WP_Query?
Short of coming up with a MySQL query yourself, you could get a list of distinct meta_keys and build your query array based on the results. On another note, I think you may have misunderstood the meaning of EXISTS. It doesn’t denote finding the value parameter passed within the value of the given meta. I … Read more
I’m not in your scenario, please find out the way you can use the code to get the appropriate flavor. The issue is when you are appending the actual URL to the current URL, that would be a mess. Let’s do it differently: Let’s make a hashed affiliation link and store it in database to … Read more
Bed On the above line you are missing echo before get_post_meta function thats why it is only showing Bed for all the entries. Please change the above code with the below code that has echo before the get_post_meta function. Bed