how do I get the title in the post [closed]

If you just want to wrap the post title in a permalink, change this: echo ‘<h3 class=”entry-title media-title”>’ . get_the_title() . ‘</h3>’; …to this: echo ‘<a href=”‘ . get_permalink() . ‘”><h3 class=”entry-title media-title”>’ . get_the_title() . ‘</h3></a>’; Codex reference: get_permalink()

change the post time on multiple posts

If you have the id of the posts, you can use wp_update_post and change the post_date. foreach ($postId as $id) { // random hour and time. You can also manually set these. $h = rand(1, 23); $i = rand(0, 59); $newDate = array( ‘ID’ => $id, ‘post_date’ => “2013-12-19 $h:$i:59” // [ Y-m-d H:i:s ] … Read more

remove all custom post created

Manipulating posts directly in database is rarely good idea, since it skips all the APIs, hooks and so on that normally participate in the process. You should use get_posts() to retrieve the list and wp_delete_post() for deletion to ensure it is done properly and there are no leftovers.

Sidebar on single.php not showing up

It seems that the sidebar checks whether or not the Post Layout is set to “content”. If you remove that check, it should operate the way the main index page does. Editing / commenting out the following lines in sidebar.php should solve the problem (if not, get you closer): Find: if ( ‘content’ != $current_layout … Read more