How to get page’s ID if I know the title only?

I’m not sure how to get it via the title, but you can get it via the slug (which is often more useful in my experience) using this: http://erikt.tumblr.com/post/278953342/get-a-wordpress-page-id-with-the-slug Just change “$page” to “$post” if you want to return slugs for posts instead of pages. G’luck!

Get post title with link

Did you use it like that?? <a href=”https://wordpress.stackexchange.com/questions/141318/<?php get_permalink($id); ?>”><?php the_title($id); ?></a> for use to that foreach($ids as $id){ $link = get_permalink($id); $title = get_the_title($id); $links .= ‘<a href=”‘.$link.'”>’.$title.'</a>’.'<br/>’ ; //$links .= $link . ‘ <br>’; } get_permalink get_the_title Try to use that while I’m coding your code.

How to split up the_title and insert a span tag

its best if you just use custom field type to create a sub title… That way you leave the title un-touched and just add a field where you can insert a value like so (calling field sub title): Then you can fetch your subtitle easily: <?php $sub_title=get_post_meta($post->ID,’subtitle’,true); if($sub_title != ”) { echo ‘<h1>’. the_title() .'<span>’. … Read more

Replacing the title in admin list table

1. Change post title in post list column I misunderstood what you wanted – obviously. You can do that like this: add_action( ‘admin_head-edit.php’, ‘wpse152971_edit_post_change_title_in_list’ ); function wpse152971_edit_post_change_title_in_list() { add_filter( ‘the_title’, ‘wpse152971_construct_new_title’, 100, 2 ); } function wpse152971_construct_new_title( $title, $id ) { //print_r( $title ); //print_r( $id ); return ‘new’; } Making use of the admin_head-$hook_suffix … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)