What is full URL for a post?

There is nothing after the slash. Do not see the address as something like a directory structure. It is just an address, a unique string to tell WordPress which content it should load. That content will be loaded into any template, and that template again could be composed of multiple separate files from the theme.

previous_posts_link and next_posts_link, how to return the next/previous post’s title as the url

The functions you are using refer to the next or prev paginated set of posts, not a single post, hence the format they are in. Try using get_adjacent_post() instead. <?php $prev = get_adjacent_post(false, ”, true) $next = get_adjacent_post(false, ”, false) //use an if to check if anything was returned and if it has, display a … Read more

Keep Title and Description always

In any properly coded theme the title should be completely generated with wp_title() and easily filterable to specific string (in functions.php or otherwise): add_filter( ‘wp_title’, function () { return get_bloginfo( ‘name’ ) . ‘ | ‘ . get_bloginfo( ‘description’ ); } );

Replace text in the Title

First things first, lets clean up your code: <?php $wptitle = the_title(); $wptitle = str_replace(‘&’, ‘and’, $wptitle);?><?php echo $wptitle; ?> Lets remove the PHP tag spam and put things in nice clean lines: <?php $wptitle = the_title(); $wptitle = str_replace(‘&’, ‘and’, $wptitle); echo $wptitle; ?> Now if we look at the problem, the_title, that function … Read more

Cannot use ‘CSS’ in post title

Disable all plugins. One of them puts all words with capital letters in a <span class=”caps”> container. In <meta property=”og:title” content=”test <span class=”caps”>CSS</span> title” /> … this closes the <head> section automatically because output is not allowed in <head>. If you have found the plugin tell its author about the Bug. I’m sure s/he wants to … Read more

Split the_title

The best way to go about it is using the the_title filter. Put the following code in your functions.php. add_filter( ‘the_title’, ‘wpse_64467_prefix_title’, ”, 2 ); function wpse_64467_prefix_title( $title, $id ){ $header_title = get_post_meta( $id, ‘header_title’, true ); $title = ( $header_title ) ? $header_title . ‘ – ‘ . $title : $title; return $title; } … Read more

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