Add nofollow to custom field link and make domain exceptions?
Add nofollow to custom field link and make domain exceptions?
Add nofollow to custom field link and make domain exceptions?
Permalink structure depending on custom field
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
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
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
You can use PHP’s fgetcsv() or str_getcsv() function to parse the uploaded CSV file. Your CSV will need to include a column with the Post’s ID as well as the columns matching up to your custom field names. Loop through the CSV and for each line update the custom fields for that post using update_post_meta() … Read more