Disable author profile in post

There’s no exact “setting” in the backend/Admin UI. You’ll have to edit your template files (the php files that are in your theme folder). Search for something like <a href=””></a> where you got one (or more) of the php (wp native) function or variable: the_author_posts_link(); $curauth->user_url; get_the_author(); get_author_posts_url(); … or something theme specific Helpful is … Read more

Edit Post VS Custom Form

You are way on the safer and less effort involved side if having them access the admin interface is an option. In that case you could implement a custom post type for your needs, disable most of the ‘support’ flags when registering it, and add your own metabox to support latitude and longitude, as well. … Read more

Post Type Label Name

The function register_post_type() takes an argument ‘labels’. This is an array, one of the possible keys is named … tada! … ‘menu_name’. Sample code register_post_type( ‘academias’ , array ( ‘can_export’ => TRUE , ‘exclude_from_search’ => FALSE , ‘has_archive’ => TRUE , ‘hierarchical’ => TRUE , ‘label’ => ‘Academias’ , ‘labels’ => array ( ‘menu_name’ => … Read more

While in “the loop”, detect if a post is the most recent

In addition to @Milo Answer (this avoids a senseless query, because we already got every needed information from the current wp_query): if ( have_posts() ) : while ( have_posts() ) : the_post(); $headline_html_tag = $GLOBALS[‘wp_query’]->current_post === (int) 0 && $GLOBALS[‘paged’] === (int) 1 ? ‘1’ : ‘2’; the_title( ‘<h’.$headline_html_tag.’><a href=”‘.get_permalink().'” title=”‘.the_title_attribute( array( ‘before’ => ‘Permalink … Read more

posts_nav_link() not displaying anything

You need to do a little “hack” to get pagination to work for your custom loop. After you define $myquery, do the following: <?php // globalize $wp_query global $wp_query; // copy $wp_query into a temporary variable $temp_wp_query = $wp_query; // nullify $wp_query $wp_query = null; // move $myquery into $wp_query $wp_query = $myquery; ?> At … Read more

WordPress post tag & custom field

To convert the old custom fields, you can write a plugin that, on activation, fetches all the posts with your custom field name and converts them to tags with the handy wp_set_post_terms. First set up a few constants with your field names and post type. <?php /** * CHANGE THIS! what is your custom field’s … Read more