Highlight posts currently being edited on multiple editor site?
Highlight posts currently being edited on multiple editor site?
Highlight posts currently being edited on multiple editor site?
There is no “normal” way (either is commonplace), but it all comes down to your permalink structure, and whether that has a trailing slash or not. As for your login page, it all depends on how you’re generating the URLs, but I would suggest using user_trailingslashit( $basepath_without_query ). As the name suggests, it will apply … Read more
to make this work all I did was add ‘terms’ => array(‘home’), to each term like this above ‘terms => ‘home’
get_post_meta no longer working
syntax error unexpected ‘}’ at 364 line
Add: $first_attachment = reset($attachments); $first_attachment_id = $first_attachment->ID; $first_attachment_title = $first_attachment->post_title; Below: $nbImg = count($attachments); Now you are able to return the link with: echo wp_get_attachment_link( $first_attachment_id, ” , true, false, $first_attachment_title ); If you need a sort of custom link markup, you can have a look at the related functions: http://codex.wordpress.org/Function_Reference/wp_get_attachment_link Edit: There is no … Read more
If you want to put the custom fields inside the shortcode…you actually should put the custom fields inside the shortcode. Be sure that your fields content does not get echoed, according to ACFs resources you have to use get_field($field_name) within the loop. Try: <?php echo print_wp_cart_button_for_product(get_field(‘product_name’), get_field(‘product_price’)); ?>
Apparently this is a new WordPress bug (I’m using version 3.5.2). Just set wp_debug to false and it works perfectly again. Hopefully they’ll fix this soon. define(‘WP_DEBUG’, false);
You are offered to use: get_post_meta($post_id, $key, $single); instead of: get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,’Pageimage’); and then process this meta value.
I am not sure this a WordPress question. It is really more just bad PHP but since that is a filter, in the spirit of fostering good will… Your function is returning a variable-name function that doesn’t exist, and none of your operations are saved at all. You are processing the string but you aren’t … Read more