The title tag has no wiki summary.
3
votes
3answers
3k views
How to get page's ID if I know the title only?
Is there an exact opposite funciton to this one:
get_the_title(ID)
I know there's:
get_the_id()
But it doesn't seem to accept any arguments.
So, basically, I'm looking for something like:
...
1
vote
1answer
502 views
Setting a title on a Custom Post Type that doesn't support titles
I have a CPT called "profile" that only supports the editor and thumbnail. Each user is limited to posting just 1 profile.
I'm looking for a way to prefill the title and slug fields with the display ...
-1
votes
1answer
185 views
Create Slugs Programmatically from Post Content for Specific Post Type [closed]
Was looking at the below post which does something similar to what I am trying to do...it clears out the post_name (slug) and recreates based on post_title.
(for a specific post type)
Create slugs ...
1
vote
0answers
68 views
LaTeX formulas in title of the post? [closed]
Is there anyway that one can put a LaTeX formula on the title of a post? I know that they eventually become an image, while being used inside posts, but I'm just curious.
-1
votes
1answer
423 views
Changing the title tag from a shortcode
I currently have a shortcode which dynamically swaps out locations on a page to make each page specific to a location.
For example the url
http://mywebsite.com/offers/scotland/
Would make the H1 ...
4
votes
4answers
7k views
query_post by title?
is it possible to create a loop of posts using WP_Query or query_posts using the title?
ie
$args = array('post_title'='LIKE '.$str.'% ');
$res = WP_Query($arg);
// the loop...
// trying this ...
0
votes
1answer
334 views
Why doesn't my simple the_title filter get applied?
I have added the code below to an active plugin, but it's having no effect on my posts.
add_filter( ‘the_title’, ‘myfunction’);
function myfunction($title) {
return "Why won't this work?" . ...
3
votes
2answers
364 views
Copy a Taxonomy Term into the Post Title for a certain Custom Post Type
I am using Gravity Forms to allow users to create posts from the front end.
However, the way this site I am building is going to work, one specific Post_Type is essentially just a "Data" post. There ...
2
votes
2answers
369 views
What code do you use to generate the text to go into the HTML title tag?
The question title says it all. Myself I just stick with the default code from one of the packaged templates that comes with WordPress out of the box:
<title><?php
/*
* Print the ...
0
votes
2answers
969 views
Blog Posts not showing title
I have my Reading settings set to Static pages and blog is set to a page called What's New.
When I go to this What's New page I can see the post content but the post title with link to post page is ...
0
votes
3answers
441 views
Custom Post Types: Custom columns with Title submenu?
When viewing non-custom Posts, you get the likes of this submenu:
I'm not using a title - I'm using custom columns with two fields concatenated:
Is there any quick and easy way of adding the ...
1
vote
1answer
319 views
Add title, post content, and category like add_post_meta and update_post_meta
How can I update/add a new title, post content, and category to a post with hard PHP code similar to add_post_meta(), update_post_meta()?
1
vote
1answer
59 views
Removing title tags from each page
hello to all I am newbie to wordpress. I want to remove the title tags from every page.Is there any way to remove that part?Thanks in advance..
0
votes
1answer
243 views
How do I choose not to display the title header on a specific page?
I would like to have one specific page on my WordPress blog omit the header .
Is there a way to wrap that title code from page.php in my WordPress theme in an if clause that specifies the page I do ...
0
votes
2answers
1k views
How Can i Get 5 Recent Post Title With Corresponding Link?
I Want to Add My Latest 5 Post Title with Corresponding Link in My Header Position.What was the Actual Php code?Am Newbie ....
1
vote
2answers
648 views
Custom Post Type with Custom Title
I have a custom post type without title support and I'm trying to generate one from post's taxonomies and custom fields. To do so, I'm using this code:
function custom_post_type_title_filter( $data , ...
-1
votes
1answer
308 views
Automatically add title attribute to links in WordPress
If I link to an article on a website, is there a way to automatically include a title attribute with the value being the title of the linked page?
0
votes
3answers
875 views
What's the proper way to use the get_image_tag filter?
I'm attempting to remove the title attribute for post thumbnails (on certain posts), and I assume the get_image_tag filter is the way to do this. However, what I've got so far isn't working. What do I ...
1
vote
1answer
309 views
How to get “Widget Logic” plugin's input value in a custom widget code (to display on the Widget admin page)
I've got the "Widget Logic" plugin installed. I have created my own widget called "Buzz". I have a sidebar with multiple instances of my custom widget "Buzz".
Now, on the Widgets admin page when a ...
0
votes
2answers
593 views
My post titles is getting mashed up with my blog title
I installed the all in one seo pack plugin and after enabling it my post titles get "stuck" with my blog title without a space in the title.
Affected site: http://bit.ly/iZ9ik0
As you can see the ...
0
votes
1answer
564 views
Site Title appearing twice on live site
My site template's header.php file has the following:
<title><?php wp_title ( '|', true,'right' ); ?></title>
Why does this produce the site title twice on each page?
0
votes
1answer
106 views
Truncate Widget Title
I'm using a function:
function widget_new_title($title) {
echo word_limiter($title,20);
}
add_filter('widget_title','widget_new_title');
to limit the characters for widget title but my problem ...
0
votes
1answer
62 views
Is there a way to specify an extra class for a post or page with no title?
If I do a post or a page with no title, I'm left with an empty h1 tag at the top of the post/page.
I'd like to either get rid of the h1 in these cases, or else be able to add an extra CSS class to ...
5
votes
1answer
2k views
Change page title in admin area
Is there someway to change the title in wp-admin? Been looking all over google but no one seem to mention it.
I simply want to get rid of "— WordPress" and possibly change the "‹" into ...
0
votes
1answer
116 views
Customizing Titles on the Fly with Code
I hope this question is easy. I want to customize my theme so that the post titles are created on the fly with code. For example, I might have a post where a price changes on the page 4 times a week, ...
2
votes
3answers
6k views
How to get current-menu-item title as variable?
Is possible to get current-menu-item as a php variable?
I'm listing the category museums via the menu item 'museums we support' so i'd like the get 'museums we support' bit and display it somewhere?
...
3
votes
3answers
634 views
Set Custom Post Type title to the Post's Date
I have a custom post type, called 'status' and I have disabled 'title' in the post type. Right now it's setting all posts to have the title "Auto Draft". I want to set up a way to set the title to be ...
2
votes
1answer
189 views
Browser title script ignoring is_page /else conditional [closed]
I've used this code to stipulate different separators for different pages in my clients site:
<title>
<?php if(is_page('Portfolio')){
wp_title( 'of', true, 'right' );
echo ...
0
votes
1answer
259 views
Showing RSS feed via fetch_feed. How to show the site title of the feed?
Question is simple. Can i get the title and main url of the site from where the posts are loading? Actually i want to linked to the main site.
The url can be found by wordpress function esc_url(); ...
0
votes
2answers
496 views
Wrap the_title_attribute in a H2 within a Conditional Tag?
I have the following that works fine..
elseif( get_post_type($post->ID) == 'press' ){the_title_attribute();}
However, i need the aforementioned title to be wrapped with a h2 tag.
Tried this but ...
1
vote
1answer
635 views
wp_title() handling of author page
Why doesn't wp_title() display the author's name on an author archive as it does for a category or date archive? How can I hack this functionality?
header.php calls:
<title><?php wp_title ( ...
0
votes
1answer
184 views
ASCII titles with Yoast SEO plugin
I'm finding that SEOmoz is showing page titles with ASCII when indexing my customer's site http://bulldogfencespokane.com. I'm concerned that this is how search engines will index the site. I'd love ...
0
votes
1answer
116 views
title tag function
I am using a function to display the URL on title tag, I coded this function which works properly but I would like to customize it more further.
function title_tag()
{
$a = $_SERVER['REQUEST_URI'];
...
4
votes
7answers
2k views
How can i add title attributes to next and previous post link functions
It's a pretty simple question really! For some reason a title attribute is not appended to next_post_link and prev_post_link calls in Wordpress.
Anyone got any tips on this?
Thanks
0
votes
2answers
621 views
Output Title of Post's Current Category
How do I output the current category title for each specific post?
<?php query_posts('category_name=group&posts_per_page=10'); ?>
<?php if (have_posts()) : ...
1
vote
3answers
1k views
How to display post title & excerpt when mouse hovers on an image?
I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post ...
2
votes
3answers
2k views
How do I get a post (page or CPT) ID from a title or slug?
I've scoured the Codex, failed to get get_page_by_title() to work and am quite surprised that there doesn't seem to be a standard WP function for this task.
I need to get the ID of any given post/ ...
0
votes
1answer
320 views
How can I modify RSS item titles to be either the title or a custom meta field?
I'd like to optionally replace some RSS item titles with a headline meta field I've added to certain post types.
I have the post types showing up in the feed using:
function myfeed_request($qv) {
...
0
votes
2answers
97 views
permalinks on title tag
Is it possible to have my custom permalink structure on title tag of my blog?
my current permalink structure is this
/%postname%/%location%/%mba_courses%/ where my location and mba_courses are custom ...
0
votes
3answers
1k views
Hide a page title in Wordpress 3.0
I can't find the option to hide the page title. Is there some other plugin required to get this functionality?
If you look in this video video you can see the option to set the page title. I don't ...
1
vote
1answer
361 views
Lose “Blog Archive” from page title
Right now the title of a post page on my blog reads like this... Blog Name >> Blog Archive >> Post Title
I don't see the need for "Blog Archive" to be in there and would like to remove it. I've ...
0
votes
2answers
102 views
Anyway to specify what should appear in <title> in .php file?
Is there anyway I can set what text should appear in the tags before get_header() is called in my .php files that are inside my theme's directory?
5
votes
2answers
1k views
How to prevent apostrophes and quotes from appearing in permalinks?
I'm using custom permalinks "/%category%/%postname%/". Whenever a post title contains quotes or apostrophes they appear in the URL.
Can someone tell me how prevent them from appearing in the slug?
...
1
vote
1answer
226 views
HeadSpace2 double title on homepage
I started using HeadSpace2, a meta plugin for WordPress, and it works great so far. I even managed to get the Google description that I wanted with it.
Let's call my website for "HomePage", and the ...