Contact Form 7 – Delay auto responds
Contact Form 7 – Delay auto responds
Contact Form 7 – Delay auto responds
When you are on an author.php template page, you should be able to get the current author via $wp_query->get_queried_object(). That is also what is_author() uses when you want to check for a specific author. Do you also have a question about setting the cookies? I don’t think WordPress has specific cookie functions. wp_setcookie() is deprecated … Read more
When you remove vote check for your condition, then if needed: fetch categories with wp_get_object_terms() (low level func, you can specify to fetch names or ids only since you don’t need full objects for this) modify array (remove category you don’t need, add the one you do) set categories with wp_set_post_categories() (it will overwrite all … Read more
Hi @epaps: So I tested your code and it all works fine. The $post is passed in as an object and you have full access to the $post->ID variable. Best I can tell is that you have some kind of plugin interaction that is causing it to fail or that, for some reason the scheduled … Read more
After removing the .DS_Store file from the images/headers folder, the Header admin panel is displaying the header image thumbnails perfectly! And yes, it is important to remove .DS_Store files before migrating the site to live server, or they will hitch a free ride and end up on the server. So Mac users, pay attention. To … Read more
Settings > Discussion > Other comment settings > uncheck Comment author must fill out name and e-mail Update Well, as far as WP is concerned these are glued together. You can add your own check for empty name, something like this (not tested): add_filter(‘preprocess_comment’, ‘require_comment_author’); function require_comment_author($commentdata) { if (” == $commentdata[‘comment_author’]) wp_die(‘Error: please enter … Read more
Within your main post loop you would add something like, get_post_meta($post->ID, ‘property_feature’, true); A basic example of what your main loop might look like ( it depends on your theme) to include a title and your custom field. //start the loop <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> //add … Read more
Check out this link: http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/ 🙂
A shortcode handler doesn’t have to return anything, it can just modify a global variable that you later read in your sidebar widget. If your sidebar is displayed after your post content (most likely if it’s a right sidebar), you can do this without any problem. If your sidebar is displayed before the post content … Read more
Looking at http://testbp.org/activity/, that activity feed has classes on each list item indicating the activity type. If you can look at that theme, I suspect you’ll find the code to add the right class for your styles.