• From where i can set the title it gives to the pages where it shows the full sized images?

    Right now it seems to make them by adding together
    (the post title where the image is) + (the image title) + (the blog title) which is a bit too much and if all 3 are on the same topic might look like keyword stuffing.

    Plug-ins like All in one SEO pack, doeosn’t seem to have control over that particular page title.
    I’m also unable to find a template dedicated to just that page.

    I’m lost

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter Fking

    (@fking)

    Unfortunately it doesn’t i’ve sent you email with details so you can see ??

    Thread Starter Fking

    (@fking)

    Ok now that’s weird. The code for the title from the original twentyten template, placed instead of the code my template uses, generated exactly the same title for those image pages!
    Also uploading attachment.php template from twentyten to my template dir, changes the page layout but still outputs the exactly same title!
    Now I’m completely lost!

    Thread Starter Fking

    (@fking)

    any ideas what else i might look into?

    Thread Starter Fking

    (@fking)

    After few days testing and hiring an WordPress expert to look into it, we actually found that All in one SEO pack wasn’t allowing the title to be output as set in header.php for the attachment page.
    So we added a condition in aioseop.class.php in this function:
    function template_redirect() {
    global $wp_query;
    global $aioseop_options;
    $post = $wp_query->get_queried_object();
    if( $this->aioseop_mrt_exclude_this_page()){
    return;
    }
    //ADDED BY US this condition only
    if(is_attachment()) {
    return;
    }
    if (is_feed()) {
    return;
    }
    if (is_single() || is_page()) {
    $aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, ‘_aioseop_disable’, true)));
    if ($aiosp_disable) {
    return;
    }
    }
    It took me a lot of time and some money to figure out this, so i hope it might be helpful to someone else.
    Also it will be great if we can get it included in next version so i don’t have to fix it every time i update this plug-in, and i use it for quite a lot of sites ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Controlling the title of the pages with images’ is closed to new replies.