Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorlugano
    • CommentTimeDec 6th 2008 edited
     permalink
    Hola comunidad,

    Pregunta: Existe algún plugin para que Flatpress coloque como meta TITLE el nombre de la categoria correspondiente ya que el googlebot en algunos casos hace referencia a "Etiquetas de título duplicadas".


    Saludos cordiales. Gracias.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeDec 7th 2008 edited
     permalink
    <?php
    /*
    Plugin Name: CatTitle
    Plugin URI: http://www.flatpress.org/
    Description: Show category name in html meta
    Author: NoWhereMan
    Version: 1.0
    Author URI: http://www.nowhereland.it/
    */

    function plugin_cattitle_head() {
    global $fp_params;
    if (isset($fp_params['cat'])) {
    $category_names = entry_categories_get('defs');
    if (isset($category_names[ $fp_params['cat'] ]))
    echo '<meta name="Title" content="' . $category_names[ $fp_params['cat'] ] . '" />';
    }
    }
    add_action('wp_head', 'plugin_cattitle_head');



    this should do what you're asking for; it could be extended with other METAs too.
    •  
      CommentAuthorflat2007
    • CommentTimeDec 10th 2008 edited
     permalink
    Hi, I tried it and didn't work for me until I changed
    $fp_params['category']
    with
    $fp_params['cat']

    I think this plugin could be changed to give the SEO plugin some members asked for some weeks ago, what do you think NWM?
    •  
      CommentAuthorNoWhereMan
    • CommentTimeDec 10th 2008
     permalink
    I think this plugin could be changed to give the SEO plugin some members asked for some weeks ago, what do you think NWM?


    yes, that's what I meant with

    Posted By: NoWhereManit could be extended with other METAs too.


    bye :)
    •  
      CommentAuthorlugano
    • CommentTimeJan 8th 2009
     permalink
    Hi all.

    This plugin does not work for me, why?. I changed category x cat... Activate plugin... Review permissions
    - The variable is empty.
    Use flatpress vivace with Pretty url, any idea?... thanks
    •  
      CommentAuthorNoWhereMan
    • CommentTimeJan 8th 2009
     permalink
    I've now fixed the code as suggested by flat2007, it should work

    bye
    •  
      CommentAuthorlugano
    • CommentTimeJan 8th 2009 edited
     permalink
    Hi NoWhereMan,

    {$flatpress.cattitle} ?.

    Thanks.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeJan 9th 2009
     permalink
    there's no such thing like "{$flatpress.cattitle}" at the moment...
    •  
      CommentAuthorlugano
    • CommentTimeJan 9th 2009
     permalink
    Fixed... plugin work fine.
    •  
      CommentAuthorrenzge
    • CommentTimeAug 22nd 2009
     permalink
    hi everybody
    i have taken the code from above
    but
    with
    $fp_params['category']
    or
    $fp_params['cat']
    it doesn´t work
    what else could be the problem
    here my code:

    <?php
    /*
    Plugin Name: CatTitle
    Plugin URI: http://www.flatpress.org/
    Description: Show category name in html meta
    Author: NoWhereMan
    Version: 1.0Author
    URI: http://www.nowhereland.it/
    */

    function plugin_cattitle_head()
    {
    global $fp_params;
    if (isset($fp_params['category'])) {
    $category_names = entry_categories_get('defs');
    if (isset($category_names[ $fp_params['category'] ])) { echo '<meta name="Title" content="' . $category_names[ $fp_params['category'] ] . '" />'; }
    else { echo '<title>' . $pagetitle . '&raquo;' . $flatpress.TITLE . '</title>';}
    }}

    add_action('wp_head', 'plugin_cattitle_head'); ?>


    filename: plugin.cattitle.php
    folder: /html/fp-plugins/cattitle/

    I hope you can help me
    best regards
    •  
      CommentAuthorlugano
    • CommentTimeFeb 27th 2010
     permalink
    Speaking on the same topic.
    Is there any way to use the variable $ category_name [$ fp_params [ 'cat']] of plugin-cattitle and print it in the body of the page?. This way I can give info to the search engine. If you could add a short description, it would be perfect.

    Thanks for everything.
    •  
      CommentAuthorrikriz
    • CommentTimeJun 4th 2010
     permalink
    plugin don't work :-(