Which hook should be used in this case?

I believe it’s a simple difference, here; you are echoing with e() – try returning with _() instead: function custom_title_text( $title ){ return __( ‘Enter Name here’ ); } add_filter( ‘enter_title_here’, ‘custom_title_text’ );

How to handle dates, trying to calculate time since a post

You don’t need to know the user’s timezone, because time since the post was published is independent of timezone. WordPress sets your timezone to UTC so that internally, all dates are dealt with the same and consistent timezone. You should avoid using php functions, and instead use the WordPress provided functions. Incidently, human_time_diff() does exactly … Read more

Latest posts on all pages

Did see your code before, and my original solution would not have worked. Do you have a link to the website this is on? Maybe a long shot as not 100% sure what this is doing, have you tried changing the value == “1” to == “2” and see what happens?

How to call the_author_meta and make it work?

Add your author meta information after if ( have_posts() ) : <?php if ( have_posts() ) : the_post(); ?> About <?php the_author(); ?>, the author of this blog <?php userphoto_the_author_thumbnail() ?> <?php echo get_the_author_meta( ‘description’ ); ?> <?php rewind_posts(); while ( have_posts() ) : the_post(); ?> <?php //loop stuff ?> <?php endwhile; else: ?> <p><?php … Read more

Merging separate works in wordpress

You can use the WordPress Exporter and Importer under the Tools menu in WordPress to have each person export their content to XML files and you can import each of the exported files. Know that the export/importer will merge the posts, but post_ids will get changed.

List child terms and posts in the current term

ok, i don’t know how this looks but i’ve got exactly what i wanted. <?php $term = get_queried_object(); $tax = ‘ntp_package_type’; $parents = $term->parent; $term_id = $term->term_id; if($parents == 0 && !is_single()){ wp_list_categories( array ( ‘taxonomy’ => ‘ntp_package_type’, ‘pad_counts’=> 0, ‘title_li’ => ”, ‘child_of’ => $term_id, ) ); } elseif ($parents > 0 && is_tax($tax, … Read more