Title: Override Post Title with First Content Heading
Author: Weston Ruter
Published: <strong>28 Settembre 2009</strong>
Last modified: 21 Dicembre 2009

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

![](https://s.w.org/plugins/geopattern-icon/override-post-title-with-first-content-
heading.svg)

# Override Post Title with First Content Heading

 Di [Weston Ruter](https://profiles.wordpress.org/westonruter/)

[Scarica](https://downloads.wordpress.org/plugin/override-post-title-with-first-content-heading.zip)

 * [Dettagli](https://it.wordpress.org/plugins/override-post-title-with-first-content-heading/#description)
 * [Recensioni](https://it.wordpress.org/plugins/override-post-title-with-first-content-heading/#reviews)
 * [Sviluppo](https://it.wordpress.org/plugins/override-post-title-with-first-content-heading/#developers)

 [Supporto](https://wordpress.org/support/plugin/override-post-title-with-first-content-heading/)

## Descrizione

_This plugin is developed at
 [Shepherd Interactive for the benefit of the community. No support is available. Please post any questions to the [support forum.](https://wordpress.org/tags/override-post-title-with-first-content-heading?forum_id=10)

On a singular post/page, normally in The Loop `the_title()` returns
 post_title;
if, however, this needs to be overridden so that a custom content heading is displayed(
i.e. for SEO purposes), then an h1 or `h2` element may be supplied at the beginning
of the `post_content` and the contents of this heading element will be returned 
by `the_title()` instead of `post_title`.

From a technical perspective, the site title in the main header should be
 an `h1`
element and the page/post title should in an `h2` element within an `article`, [per HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#headings-and-sections):

> Sections may contain headings of any rank, but authors are strongly
>  encouraged
> to either use only `h1` elements, or to use elements of the appropriate rank for
> the section’s nesting level.

This is seen in the default WordPress theme and the HTML specifications. However,

SEO places higher priority on the contents of an `h1` element, so if every page 
of a site has the exact same `h1` contents (the site name), then search engines 
may not be as likely to rank the page based on the unique contents of the `h2`. 
It has been [suggested](http://blogsessive.com/blogging-tips/blog-seo-tips-titles/)
therefore that the `h1` and the `h2` elements be swapped, so that the site title
appears in an `h2` and so that the unique page title appears in the `h1`. While 
the specifications don’t prefer this arrangement, it is not incorrect, also per 
HTML5:

> Both of the documents are semantically identical and would produce the same
>  outline
> in compliant user agents.

So if different heading levels are semantically equivalent, and if search
 engines
really place that much importance on `h1`, then SEO wins.

In both cases, content section headings should be coded with `h3` and
 below.

_Technical note:_ If the `$post` object is not passed into `the_title`
 filter, 
then the page’s `the_title()` must be called before every other the_title() call`
in_the_loop()`

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Override Post Title with First Content Heading” è un software open source. Le persone
che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

[Traduci “Override Post Title with First Content Heading” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/override-post-title-with-first-content-heading)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/override-post-title-with-first-content-heading/)
segui il [repository SVN](https://plugins.svn.wordpress.org/override-post-title-with-first-content-heading/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/override-post-title-with-first-content-heading/)
tramite [RSS](https://plugins.trac.wordpress.org/log/override-post-title-with-first-content-heading/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2009-10-08: 0.2.5

 * Restricting first content heading searched for to be either `h1` or `h2`, for
   SEO purposes.

#### 2009-09-28: 0.2.4

 * Initial release

## Meta

 *  Versione **0.2.5**
 *  Ultimo aggiornamento **17 anni fa**
 *  Installazioni attive **70+**
 *  Versione WordPress ** 2.7 o superiore **
 *  Testato fino alla versione **2.9.2**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/override-post-title-with-first-content-heading/)
 * Tag
 * [h1](https://it.wordpress.org/plugins/tags/h1/)[h2](https://it.wordpress.org/plugins/tags/h2/)
   [heading](https://it.wordpress.org/plugins/tags/heading/)[seo](https://it.wordpress.org/plugins/tags/seo/)
   [title](https://it.wordpress.org/plugins/tags/title/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/override-post-title-with-first-content-heading/advanced/)

## Valutazioni

Non sono state ancora inviate recensioni.

[La tua recensione](https://wordpress.org/support/plugin/override-post-title-with-first-content-heading/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/override-post-title-with-first-content-heading/reviews/)

## Collaboratori

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/override-post-title-with-first-content-heading/)