Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Display or retrieve page title for all areas of an installation or a site of a multisite or network install.
0
votes
Site Title and Tag Line(Both are) Show on my Meta Title/ Site Title
You can use the wp_title filter to change your title to whatever you want.
add_filter( 'wp_title', 'my_title', 10, 2 );
function my_title( $title, $sep ) {
global $page, $paged;
if ( is_feed( …
4
votes
How do I fix title?
Usage of wp_title() is not recommended anymore. Instead, you can add the title-tag support to your theme, so WordPress can automatically build and output the proper title for you. Here's how to do it: …
0
votes
How to set custom title of custom page template?
You can do a conditional and check if you are on a custom post type page, and then update the title:
function my_wp_title( $title, $sep ) {
if (is_single('post-tyle')){
// Update the titl …
2
votes
Accepted
Can not set custom title on some WordPress setups
This is most likely due to difference in your theme's support. Some themes render the title by using the wp_title filter, some by using pre_get_document_title. If your theme has this line in its funct …
0
votes
Hiding title of selected post without plugins
If there is only 1 post showing up in your page, you could use the the_title() filter to hide the title.
The simplest way would be this:
function hide_my_title( $title, $id = null ) {
if ( is_s …