The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
11 views

Force changing the Site Title and add link

I have the function below, but it's not actually changing the site title where it is called in my theme. function blog_filter($string, $show) { if ( $show == "name" ) { $string = ...
0
votes
1answer
29 views

How can I retrieve a Featured Image thumbnail using only the Post_title?

Is it possible to get the Wordpress featured image of a post using only the post_title name? I know it can be done with post->ID but I only have the post_title name to work with and this is outside of ...
0
votes
1answer
37 views

Show post title words one by one [closed]

How to show post title words one by one, but to exclude words with 3 or less characters. Also it would be nice to be able to exclude some words, for example to make some list of words to exclude from ...
0
votes
2answers
33 views

If post exists in the database - each time goes on `else`

Firstly, I am a newbie when it comes to php. I have a plugin that periodically imports posts into my website. Normally, it should check if the post already exists, and if it does, it updates it. ...
0
votes
0answers
11 views

Title customize

I have a site of classifieds under Wordpress. I create a menu, and I fill with the cities. Each city call a .php file and show the ads for that city. I used Redirection Plug-in for convert the ...
-1
votes
2answers
52 views

Title displaying multiple times

I'm facing a problem where my title is being displayed multiple times. Using the following code the page title 'News' is displayed 10 times, the same number as the number of posts I've elected to ...
0
votes
1answer
19 views

Microformats in a single post - layout conflict

WordPress uses microformats, for example, when we use the function post_class() in the DIV containing the article. It automatically includes the class called hentry, which is used in microformats. ...
0
votes
1answer
28 views

For better digital journalism, how to store a second title and excerpt?

This is a digital journalism issue. As the technology evolves, digital journalism has found new best practises. One of them is to always write a predictive title, combined with a good excerpt. This ...
0
votes
1answer
30 views

Array to modify post titles

Could this be converted into an array: function manipulate_post_title($title){ global $post; if ($post->ID == 1) {$title = $title.'suffix';} if ($post->ID == 2) {$title = ...
0
votes
1answer
47 views

Checking for existence of a page by title?

I'm currently working on a plugin, and I essentially want to check if a certain page has been created. Essentially, I want to do something like this: if (file_exists($file)) { $exists = ...
0
votes
1answer
28 views

Create a list of posts with topic headdings

I would like to use a custom field "topic" to order Wordpress posts. This seems quite doable using 'orderby' => 'meta_value', 'meta_key' => 'topic' But I would also like to have a title of ...
0
votes
2answers
37 views

Problem dynamically generating an all purpose title tag

The code (below) works fine on all pages but front-page.php in WordPress. Specifically, it adds an extra pipe symbol to the beginning of the title tag. For example, if the following is the homepage ...
0
votes
2answers
51 views

Description is not seen of my title in search engine?

I'm using Wordpress SEO plugin and I can also see my site in google search But in general settings of Wordpress I gave title as Gamers | Play game online and description and also provided some ...
0
votes
1answer
29 views

Output menu title

Is it possible to output the title of wp_nav_menu somehow? The closest I could find was http://codex.wordpress.org/Function_Reference/wp_nav_menu#Adding_a_Word_at_the_Beginning_of_the_Menu. For the ...
0
votes
1answer
64 views

posts order by title second word

This is a common question, i haven't been able to find a straightforward answer to. I want to generate a list of a custom post type titles. im using 'orderby' => 'title' to have them display ...
0
votes
1answer
38 views

Hide H1 Title using the_title filter

I am trying to hide the pages H1 header IF a custom field specifies this. On a page back end I have added a custom field: Name = hide_title Value = true I then want to hide only the H1 using a ...
2
votes
2answers
143 views

How to count the length of a post title?

Let's say that I have an entry titled Crime & Punishment I tried to count the number of characters of my entry titles using the following line: echo strlen( get_the_title() ); I expected the ...
0
votes
2answers
52 views

Admin filter/error if post title is too long

Is there a filter that will throw an error if the posts creator enters a post title that is too long? I am looking to throw an error like: "The title you've entered is more than 30 characters. Please ...
0
votes
1answer
91 views

The entity “raquo” was referenced, but not declared

Would anyone happen to know why I keep getting the error: "The URL does not appear to reference a valid XML file. We encountered the following problem: Error on line 163: The entity "raquo" was ...
3
votes
2answers
75 views

What hook is executed just after wp_query has been executed?

What hook is executed just after wp_query has been executed? before template is rendered? I want to change the page title but it depends on what has been queried. I have put it in template_redirect ...
0
votes
1answer
19 views

Taxonomy page shows category in title

I have a custom taxonomy called 'Genres' within that I have various taxonomies: 'Paintings' 'Drawings' etc. I use the code below to create my page titles. When viewing the taxonomy page for ...
1
vote
3answers
129 views

Title and post URL based on custom fields?

I have custom fields in my custom post type. They should serve as a title and post slug for URL. Basically, whenever I change the content of the custom fields, the title field should react ...
0
votes
1answer
27 views

Changing title bar in browser window of theme “Encounters Lite”

I have an external php application for for genealogical research ("TheNextGeneration", TNG) integrated into WP. The integration plugin hooks the external content into a blank WP page and displays ...
0
votes
1answer
40 views

WP Gallery showing captions twice

I am using standard WP gallery to display images. I have added caption to every image, image title was not changed so it is same like file name. When I open one image in gallery it shows caption text ...
0
votes
1answer
31 views

How to get the meta title of a page configured as blog (loop)

I'm using a function to print the titles for every type of content. I also configured a new metabox in the posts and pages to enter the title tag. This is part of the function to print the titles: ...
0
votes
2answers
22 views

Automated Footer information

Working on a theme and I'd like the copyright and title texts on the footer to be automated. It works but the tittle switches to the current page instead of the website's main title when you switch ...
1
vote
3answers
87 views

Multiple Conditions for Child Page Title

I've been trying to work with Conditional Tags and cannot wrap my head around this problem. PHP novice here. On sub-pages I need to display the parent page title as well as the page title. I have it ...
0
votes
1answer
63 views

prevent same wordpress post title

I am working on a wordpress site where users can submit there own posts. I would like to prevent users from adding a post with the same post_title This is how i currently check to see if the post ...
0
votes
0answers
11 views

Title Page reverting to homepage

Whenever I add or edit a new page, the page title automatically switches to the same title that's used on my static homepage page. If I change the title to what I want it to say, it reverts back to ...
0
votes
0answers
32 views

When editing, my post titles and permalinks revert to the title and permalink used for static homepage

Whenever I add a new post or edit an old post, the post title automatically switches to the same title that's used on my static homepage page. The permalink also changes to the same link, with a ...
0
votes
1answer
11 views

Output Taxonomy Title as Part of Result

I have a list of product details in pdf format. There are about 300 of them, and each one is a post within a custom post type of "details". Each post is linked to any combination of 3 taxonomies: ...
0
votes
1answer
43 views

Wordpress widget title coding

I have a problem with wordpress widget titles, some widgets are not affected by theme custom encoding. Here is the codes; function ecce_widget_title($title){ if( empty( $title ) ) return ' '; else ...
0
votes
1answer
54 views

Add the post type to the title of the page

How can I add the custom post type to the title of the page, I mean the title in the tag in the header. It should look something like this: Webpage name | Products > Sony Playstation 4 Thanks ahead! ...
0
votes
1answer
49 views

Strip $before & $after strings from a page title

So I have plugin that pulls remote data (real estate listings) into a wordpress site. I have been asked by a client to allow the page title for each listing to be set based upon that information and ...
1
vote
1answer
147 views

How to change the full capitals font title of my WordPress Blog?

I would like to show my WordPress blog's title as "Dummit foote 4.2.4". But I am getting all capitals as "DUMMIT FOOTE 4.2.4" What should I do to change this? I do not see any editor case in my ...
0
votes
1answer
126 views

Show Sitename on Yoast SEO Title tag

I am using Yoast SEO plugin on a site. Right now if a Post's Title is left empty in the metabox for a post, then the Title tag will output in this format... %%title%% %%page%% %%sep%% %%sitename%% ...
0
votes
0answers
111 views

Check if post title already exists

I'm using the plugin "User Submitted Posts" which allows my users to create posts frontend. So I basically have a frontend post form. I'm trying to find a way for my users to be informed if a post ...
2
votes
2answers
104 views

How to make a H1 different then the Title?

What I want to do is... on a per page/post basis I want to be able to have the H1 say something different then the Title... This should be such a simple thing, but I've been looking around for an ...
0
votes
0answers
64 views

Prevent special characters in titles being turned into code

I'm having a problem with Wordpress converting any special characters in my title to the HTML code for that character. For example, if my title is: "Post Title" Wordpress saves this as: ...
0
votes
1answer
284 views

Custom title widget / HTML encoding

I'm not the first person who has battled the matter of WordPress stripping HTML from widget titles. There are a number of custom widgets out there that allow you to add e.g. links to titles, but I ...
1
vote
1answer
69 views

Custom Postype specific changes in admin panel

I have this small bit of code which does exactly what I need. But I want to limit its use to one Custom Post Type (CPT) only. add_filter('sanitize_title', 'my_custome_slug'); function ...
0
votes
0answers
43 views

Dynamically generate custom post type title from category

I have a custom post type named "event", for which i disabled the title field. This results in the post to be automatically named "Auto Draft" and the slug "auto-draft-x" How can i automatically ...
-1
votes
2answers
60 views

Deleting first four characters from all Post Titles

I have a wordpress autoblog.. I need to delete first four characters from each single post title automatically.. How can I achieve it?
0
votes
4answers
56 views

Text under post title on frontpage but don't want it in full post

On the frontpage of a blog I want a piece of text (like an excerpt) under the title but I don't want is showing up in the full post. Any ideas how I would go about this? EDIT: Wasn't precise enough ...
0
votes
1answer
57 views

Why would apply_filters return a non-empty string, when the value returned is empty?

Been breaking my keyboard over this. Did a proper install, uploaded the database to a fresh MySQL and been working on using child themes properly. But there is something plaguing me I can not figure ...
0
votes
0answers
42 views

Custom title for custom post types

I need to change the title for a custom post type ("movie") in my site. I added the following function to my functions.php file but I see no changes in the title: function theme_wp_title( $title, ...
0
votes
1answer
88 views

How do I remove 'Home' from homepage title?

On the site I am working on, currently page titles have this format: Page title | Site name This is fine, but I want the Page title removed from the homepage, as the Google search result for the ...
0
votes
2answers
169 views

How do I display the post_title with get_permalink?

I want to display the post title instead of the link to it with get_permalink. get_permalink($comment->comment_post_ID) only shows the link to the post!
0
votes
1answer
305 views

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

The site I am working on needs to have the returned url set a specific way. That being said, all posts are basically images that are posted, with there titles being said as the page urls. How do I go ...
0
votes
1answer
86 views

Get post title by Alphabet

I try to call this function to get a list of posts by alphabet. But for some reason i keep getting an error. Call to a member function get_col() on a non-object. What am i doing wrong? {function ...