Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Okay, so you can paste this on your front page template. I assumed that your $prefix is prefix and products page id is 11 and you want to print last 3 entries. <?php $meta_entries_pre = get_post_meta( 11, ‘prefix_repeat_group’, true ); $meta_entries_int = array_reverse( $meta_entries_pre ); $meta_entries = array_slice( $meta_entries_int, 0, 3 ); if( ! empty( … Read more
You need to ask for the child term image field. You have only asked for the current page’s query object image, which may be blank depending on what the query object is. <?php $term_id = get_queried_object()->term_id; $taxonomy_name = get_query_var( ‘taxonomy’ ); $termchildren = get_term_children( $term_id, $taxonomy_name ); // Loop through each child taxonomy term foreach … Read more
The reason your custom fields are only showing up when there is post content is due to this line: <?php if( get_the_content() ):?><h3> Everything after that line will only appear if get_the_content() returns something truthy. The reason being that you’re using a shorthand if statement and not closing to before the custom field logic Try … Read more
custom field meta-box with dropdown/autocomplete
Use make_clickable() function: add_action( ‘genesis_entry_footer’, ‘custom_comments_field’ ); function custom_comments_field() { if ( is_single() && genesis_get_custom_field(‘Comments link text’) ) : echo ‘<div class=”comments-link”>’. make_clickable( genesis_get_custom_field(‘Comments link text’) ) .'</div>’; endif; } UPDATE: In that case, try this: add_action( ‘genesis_entry_footer’, ‘custom_comments_field’ ); function custom_comments_field() { if ( is_single() && genesis_get_custom_field(‘Comments link text’) ) : global $post; echo … Read more
You need a loop within a loop – loop through a counter, and for each value, check for the existence of each key with the current counter value appended. // max custom field index $number = 40; // the counter $counter=””; // the meta keys to check for $keys = array( ‘custom_text’, ‘custom_image’, ‘custom_video’ ); … Read more
Why not changing the loop? Inside the loop, just check to see if the custom-field or post-meta which you provided for the custom date is filled or not and show the post date or custom date according to the conditions. You can also have a special page for that category’s timeline and a function for … Read more
DELETE FROM wp_postmeta WHERE meta_key = “enclosure”; Open the MYSQL database window. Select the database. Open the SQL code insert window. Add this code in the text box. Click the GO button. The problem is solved.
Your problem is that you are putting the page result in $page. While the normal commands like the_title() and get_field() will look for the $post variable if you are not setting a seperate ID of which you want the title. I once did this by creating a backup of the $post variable, and then just … Read more