The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
227 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
0
votes
1answer
44 views

Change Image depending on page path

In my header.php I have the typical header code - this is for woocommerce but the coding has nothing to do with it: <h1 class="page_title"><?php woocommerce_page_title(); ?></h1> ...
0
votes
0answers
16 views

Custom Loop and the_title();

I have used custom loop to process posts however, the loop cannot get the right title or the custom fields. I am using ACF plugin The weird thing is that the loop gets the right content through ...
0
votes
1answer
653 views

Auto save title as custom meta field value

I create a custom post type where I removed the "Title", instead I want to use one of my custom meta value to become the title. This is just to make sure the title look good. Know that the post ...
1
vote
1answer
1k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: ...
0
votes
0answers
36 views

Dynamically load content based on Title and Category

After googling for about 2 days now without finding the proper answer - and I must commit that I'm not that well educated in php programming, I hope the community may provide me with the correct ...
0
votes
2answers
69 views

How to update a custom post title from a front-end form using ACF fields?

So I have a custom post title being written by a front-end (non-admin access) form using AFC fields. What I am after is a way to update the title when the post is updated from the front-end edit form. ...
-1
votes
1answer
2k 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 ...
0
votes
2answers
408 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
2answers
37 views

Echo title with permalink

I was creating a wordpress sidebar widget that will display recent posts. For, this i've created a custom widget(popular_posts_widget.php) and included in my theme functions.php. I was trying to ...
1
vote
3answers
391 views

How do we remove the H3 tag for the reply-title I.D

We're doing some SEO tweaking to a site, and our SEO guru informs us that we need to remove the <h3> tags from the #reply-title element, output from line 1554 of comments-template.php. It's the ...
-1
votes
3answers
23 views

Show page name in browser

I am developing my first WP theme and would like to know how to display page name for every page/post instead of just "mysiteaddress.com" How can I set that all my posts and pages show the tittle by ...
3
votes
2answers
72 views

How to hook into the CPT's title placeholder?

I want to change the default placeholder text in my Custom Post Type title field. This isn't possible while registering a new post type. The following screenshot describes it.
0
votes
4answers
98 views

Hide page title

I have created a custom page template and want to hide page title from the page. How do I do this? I know I can just leave page title blank or do it in CSS and that works but isn't that bad for SEO ...
0
votes
3answers
40 views

How to get links to the last N posts in a specific category?

I want to display the titles of the last N posts in a specific category. I am using the following code: <?php $cat_id=get_cat_ID('category1'); $posts = get_posts ...
0
votes
0answers
42 views

How do you add Author and date Published on Category Pages?

I made a category on my Wordpress site. when i write any post and tag it in the category, the post displaying on the category pages in a neat way, everything is fine. But Google webmaster tools are ...
0
votes
1answer
248 views

Show page title just from the first child-page in template

how can I do this: Pages: Home - sub-1 -- sub-sub-1 --- sub-sub-sub-1 On home-page should only show the page-title of the first child-page like: sub-1 I found this: <?php $child_pages = ...
0
votes
2answers
26 views

Need help with page title (Static front page)

I need some help with the code to put inside the <title> to generate the following: Static front page: Should just be the bloginfo('name') All other pages: Should be wp_title() | ...
0
votes
1answer
22 views

Replace a 'Title' tag with a Custom Field

I have this code in my theme: <div class="article-navigation"> <?php previous_post_link('<div class="navigation-item navigation-item--previous">%link</div>', ...
0
votes
1answer
45 views

How to remove Title and CSS styling of title from particular page

Hello I have wordpress website and I set up a new page called Ballina (Home) which I placed as static front page. But I want to remove the title and its CSS styling from this page because I want the ...
0
votes
3answers
6k views

Hide price & title in store thumbnail dispay? [closed]

I'm setting up a WooCommerce site to sell shirts. I have the front page (and the "Store" page" set up to show a grid of thumbnails of the shirt designs. Each item has the price and the title of the ...
2
votes
2answers
816 views

How to add a CSS class to the tooltip on a navigation menu?

I'm looking for a way to add a CSS class to the anchor tag of the tooltip on a menu item. Currently, I see that you can easily add a CSS class to the menu's li but I'm trying to style the tooltip ...
0
votes
0answers
26 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 origal ...
0
votes
2answers
44 views

Keep Title and Description always

I want to keep the title and description of wordpress blog like this: Title | Description (showed in a tab of navigator). And I don't want to change his name while I am surfing the site. I think that ...
5
votes
1answer
10k views

Translate widget titles using qTranslate plugin

I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to ...
0
votes
1answer
48 views

WP List Pages - Add Title Attributes to Anchors

Using the default wp_list_pages() is there an easy way / filter to add title attribute to the anchors? Right now it just spits out the anchor with no title attribute but I would like to add it on ...
5
votes
4answers
18k 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
0answers
28 views

template_redirect and title

I pass a template_redirect in wordpress as hook but I want to have a personnalized title for this page and I miss to do that. Has someone any idea ? add_action( 'template_redirect', 'virtual_pages' ...
0
votes
0answers
19 views

Unable to get result on str_replace

Can anyone please tell me whats wrong with my code below, I can echo out the authorname but I'm not able to get the authorname on str_replace. This is for replacing the browser tab title. Thanks. ...
0
votes
1answer
23 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 = ...
5
votes
5answers
4k views

How can I add title attributes to next and previous post link functions?

For some reason a title attribute is not appended to next_post_link and prev_post_link calls in WordPress. How can I add one?
3
votes
2answers
83 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
50 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
43 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
35 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. ...
2
votes
2answers
894 views

Disallow Same Post Title

I am looking for some code where member can't use the same title as another post already having or used. e.g if there is a post with title "Amazing Australia Tour" than it should not allow to use the ...
8
votes
3answers
1k 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 ...
-1
votes
2answers
57 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 ...
5
votes
4answers
13k 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? ...
0
votes
1answer
50 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
51 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 ...
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
3answers
1k views

Change Genesis <title> Tag from Page Template [closed]

I have made a page template for a Genesis theme in which I want to change the <title> tag but I can't find any API reference or example to do this. Does anyone have any idea how to do this?
1
vote
3answers
2k 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 ...
0
votes
1answer
46 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
39 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
43 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
1answer
79 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
40 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 ...
1
vote
1answer
192 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 ...