The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
124 views

Get all children titles of a page as a link to them

I want to pull all the children titles of certain page and put them as a link. This is what i got so far: $my_wp_query = new WP_Query(); $all_wp_pages = ...
1
vote
1answer
388 views

Include category title in wp_title

I'm using this in functions.php to output my page <title>: /** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view * * ...
0
votes
0answers
60 views

Putting the title attribute in image tag — Snapshot Theme from Woothemes

Does anybody know, how to insert the title used in the field "screenshot" and "large-image", in Snapshot Theme from Woothemes? I´ve tried using 'the_title();', but I get the post title, not what I ...
0
votes
1answer
184 views

Apostrophe and hyphen removed from title

I have a site where any Title of a Post that has an apostrophe or a hyphen ends up displaying to the site visitor as if those characters were not there. My permalinks are functioning just fine so I ...
0
votes
1answer
53 views

Add the custom post term to the custom post title

what I need is this: add a term from a custom post to the post's title. Like this: Custom Post title - term Right now I have: $terms_of_post = strip_tags (get_the_term_list( $post->ID, ...
0
votes
1answer
152 views

How can I change the title of the Home link in the navigation bar?

I use Bones theme with a static front page. The header.php calls the bones_main_nav() function without parameters, while bones_main_nav() only calls the wp_nav_menu() function.
0
votes
2answers
86 views

What can i do add title to 'large' image?

<?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); echo '<a href="' . $large_image_url[0] . '" >'; ...
0
votes
1answer
62 views

How to delete posts which have same title?

Some of my posts duplicate title. How to delete them ? And keep only one. Example: I have 4 post which have same title. And I want to delete 3 posts and keep one post. How to do this ? Thank you ...
0
votes
1answer
32 views

If post exists, make it a comment in existing post with same name?

Is it possible to make a comment out of a post that already exists (with the same name). For example, if the post 'Hello World' exists and a users posts another 'Hello World' post, it should make the ...
2
votes
2answers
382 views

Filtering 'the_title' with option to return subhead?

Problem: The WordPress iPhone app (and other WordPress-related smartphone apps) do not allow for much other than the Title and Body fields (i.e. no access to custom fields). Goal: My current ...
0
votes
1answer
283 views

Blog Title not showing up on main Blog page

I cannot get the main blog page with the current blog to show the current blog title. It shows on all other pages, just not the current/most recent blog. Any help will be greatly appreciated. Thank ...
0
votes
2answers
505 views

How to display page title+link of page created by user

I want to check if user is logged in and if have created a page. If so, option 1 is shown. This all works fine. But how to display page title+link of page created by that user between {page title ...
0
votes
2answers
65 views

Best way to achieve multiple links in a post title

Usually I would get a post title no problem, however now I need to achieve something like this: The Example is written for this title As you can see two words are links in the title, another ...
1
vote
1answer
539 views

How to display following posts titles in separate div's on a separate webpage

Intro: I have a webpage that is not part of wordpress. I have incorporated the wp blog posts, by putting The Loop in the page's code. This works, it displays the current posts and their following ...
0
votes
2answers
2k views

Search Post Title Only [duplicate]

I'm using the standard WordPress search form to search a custom post type. Here is my code: <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> ...
1
vote
4answers
2k views

Remove site name from <title> tag

My current <title> tags are like this: Blog post title | Site name How do I remove "Site name" so that the <title> tags will be like this: Blog post title Except, of course, on ...
1
vote
1answer
144 views

Unwanted content in website title

I use "anythingslider" jquery plugin to animate some html content in my wordpress theme. and i use this code in header.php to show title: <title><?php bloginfo('name'); ?> <?php if ( ...
8
votes
3answers
2k views

How to change the case of all post titles to “Title Case”

I am helping my father with his WordPress website. It has over 1,700 posts with TITLES IN UPPERCASE. We'd like to change these to "Title Case" in the database (possibly using this PHP script). The ...
0
votes
1answer
84 views

Disable title link in the backend for non-admins

I need to make posts not editable by non-admins in the backend, is there a way to disable the link in the title of the posts when they view the list of post published? Thanks!
2
votes
2answers
658 views

Set post title from two meta fields

In a custom post type I have post titles disabled, however in the list of posts and in the slug it just shows the title as "auto-draft". I want to automatically take two pieces of post-meta and make ...
0
votes
1answer
495 views

How to customize a title by passing query string?

I have a profile page, it is a template. Every time when I click one of a doctor, the profile page will show the specific doctor info by passing a query string. Something like profile?doctorName=abc. ...
0
votes
1answer
343 views

stdClass::$labels /wp-includes/general-template.php undefined

In my <title> tags I am getting undefined on a custom taxonomy in a custom post type and im struggling to find a way to set it. <title><br /> <b>Notice</b>: Undefined ...
1
vote
1answer
273 views

How to use the Display Name as the post title in a custom post type?

I've created a custom post type called "teacher" and I want to use that person's display name as the title of their post. Details: 1. The "teacher" custom post type supports title. 2. Only logged in ...
1
vote
2answers
2k views

the_title() shows title of the first post instead of the page title?

I'm occasionally facing this problem and not sure what causes it, any ideas? <?php get_header(); ?> <div class="content" role="main"> <h1><?php the_title(); ...
2
votes
1answer
2k views

How To Set Custom Post Type Title Without Supports

So, I asked this question differently in another thread but it was more of an advice type question so it really didn't render any useful responses. I believe I can word it better and should help some ...
0
votes
1answer
220 views

Change Bookmark Name without Changing TITLE Tag

Is it possible to change the name of the bookmarked page when a user adds my page as a bookmark without changing the title tag?
1
vote
0answers
192 views

posts-2-posts embedding post title of connected posts [closed]

I'm trying to create a default title for all the posts that are created, the title is generated by a couple of things, such as the post fields. I was able to write code for getting the post fields ...
1
vote
1answer
89 views

How can I automatically insert the page content as the title?

I have a custom post type with no Title field. These are short status messages, where only the content matters. The RSS feed and permalink display the title as Auto Draft, which is not very useful. ...
-1
votes
1answer
3k views

Add a Span Around a Product Title in WooCommerce [closed]

I'm customizing a custom theme to use WooCommerce. One of the issues I've run into is adding a span tag around a product title on the single product page. I've figured out how to add a filter to the ...
1
vote
1answer
284 views

Custom title, Bones theme

I'm a total wordpress noob and ran into my first problem. I downloaded this theme. My question is how do I change how the p#logo.h1 is shown. I would like to put a <br /> in the middle of my ...
0
votes
1answer
141 views

Is it possible to have different header style blog titles in different categories?

For my category titled 'mindset' I would like to use the following style on my post header: background: none repeat scroll 0 0 grey; border-bottom: 5px solid #83990A; However for my 'news' category ...
1
vote
1answer
2k views

How to add subscript and superscript in WordPress page titles

It is possible to add subscript and superscript in a WordPress page title? I need to add pages with "H2O" in the title. I have been searching, but cannot find anything with answers... only a few ...
0
votes
1answer
101 views

Taxonomy list names with lowercase

I try to make custom taxonomies names to display with lowercase, but for some reason it doesnt work and show all taxonomy titles with big capital. Here is the code that i use: $genre = ...
4
votes
3answers
3k views

Change the_title() of a page dynamically

I'm developing a plugin that doesn't use a custom post type, but separate database tables. It's a plugin that displays a list of courses with links that lead to the different course detail pages, ...
1
vote
0answers
103 views

sql select for post_title and a term name

I'm having trouble trying to think out this SQL select I need to write; here's the gist: I'm programmatically creating posts by importing an excel file, so I'm in 100% sure of post titles, etc, since ...
1
vote
1answer
41 views

Why is a category/ tag name prefixed to title of every page?

Recently, I've noticed there is a category/ tag name "Contests" added to the title of all of my pages. I've checked the "Tagline" under "Settings" >> "General" of course, it hasn't changed. This is ...
0
votes
1answer
66 views

Title don't function as link

I know there is no link tag around title, but I don't know where to put it, please help me :) This is code if ($columns->have_posts()) : $count = 0; while ($columns->have_posts()) : ...
1
vote
3answers
2k views

Insert a span inside widget title to give a different color to the second word

I'm trying to make my widget titles two-colored; the first word white and the second one yellow. I have no idea how I can insert a span before the second word of every widget title so that I can put a ...
3
votes
4answers
925 views

What is the proper filter to add html to a post / page title?

I want to use Myanmar Unicode text on my blog. Unfortunatly, pseudo-Unicode Myanmar fonts are common. So, I am writing a plugin that will suround all Myanmar phrases with HTML span tags, and use css ...
0
votes
1answer
104 views

Echo post title in post

I am looking to echo the post title at the beginning of each post. I've tried adding the following to functions.php with no luck: function add_post_content( $content ) { if ( ! is_feed() ...
0
votes
1answer
386 views

Custom Post Title as search term

is there any way to include custom post title as search term. I create custom post types - VHS, DVD, Blu Ray. Then in search box when I write DVD I want to list all posts from custom post type DVD. ...
0
votes
1answer
97 views

Register a title automatically with a relationship field

I'm trying to optimize the code of my site . I wanted to know if it was possible to give automatically a title to a new post without having to do it manually. I have a website of video games. Before ...
3
votes
1answer
168 views

Fill post titles from post content?

I imported over 1000 posts from a Tumblr gallery. All the posts are untitled, but each has a photo and name inside of the post. How do I make take the content of each post and make it the post name?
1
vote
1answer
217 views

How can I list recent posts excerpts?

I am using this directly from the codex to list 3 recent articles titles. <ul> <?php $args = array( 'numberposts' => '3'); $recent_posts = wp_get_recent_posts( $args ); foreach( ...
0
votes
1answer
88 views

How to change tag Title to its name?

i have previously asked it in stackoverflow, but there was no answer! I wish to change the title of Tags pages of my wordpress blog. What I want to do is to keep the Tag name as it's title only. For ...
0
votes
2answers
44 views

How do i remove the title from a specific page

Hi need to remove the title of a specific page, this one. I could do add_filter( 'the_title', ai1ec_remove_title ); function ai1ec_remove_title( $title ) { if( 'Calendar' === $title ) { ...
2
votes
1answer
350 views

Display post title on individual image attachment page

How to display parent post title on individual image attachment page heading of the post gallery? Currently, it shows image name as page heading on image attachment page. Any help appreciated. Thanks ...
3
votes
2answers
2k views

page title, parent tilte and grand parent title

I am using a page hierarchy and I want to show the title of the parents and grand parents page (if there is any). The structure is something like Startpage Startpage > Second page Startpage > ...
1
vote
3answers
2k views

Limit the word count in the post title

Is there a way to limit the word count of the post title? I searched over the internet but found nothing. All I know is, only the content of the post can be limited or excerpted.
2
votes
1answer
218 views

How to intercept Post Title on Post-Save

I am new to WP and I couldn't find this solution by myself. this is my function, function explodetitletotags() { global $post; $title = $post->post_title; $tags = explode(' ', ...