WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Problem with Custom Post Type bound Dynamic Pages - giving Nothing fou (8 posts)

  1. raistlinthewiz
    Member
    Posted 3 years ago #

    With 3.0.1 installed on my blog, i've created up some custom post types with custom taxonomy, all works okay except that i've introduced some dynamic pages for my custom taxonomy, where they allow user to browse custom taxonomy content.

    In my custom-post-type declaring plugin's template redirect's i've defined these dynamic pages.

    if($wp->query_vars['vod']=='browse') include(TEMPLATEPATH . '/vods/browse-vods.php');
                        if($wp->query_vars['vod']=='all') include(TEMPLATEPATH . '/vods/all.php');
                        if($wp->query_vars['vod']=='top') include(TEMPLATEPATH . '/vods/top.php');
                        else include(TEMPLATEPATH . '/vods/single-vod.php');

    Now the problem arrives with this dynamic pages where All-in-one-seo marks them as 404 pages and giving a title of "Nothing found for %request_words%".

    I've tried hooking the wp_title, but it seems both of these plugins are not using wp_title but instead wp_head, so i can't change the title's which probably google marks them as 404 erros and so does not index.

    What i look for is to prevent these plugins or any similar ones to mark them as 404 - how can i flag these dynamic pages as valid-content?

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. raistlinthewiz
    Member
    Posted 3 years ago #

    oh it seems this is dead..

  3. Michael Torbert
    WordPress Virtuoso
    Plugin Author

    Posted 3 years ago #

    AIOSEOP doesn't use wp_title because every theme doesn't have that. However, you can use the filter hook aioseop_title_single to modify the title right before it's displayed.

    I would also be interested to figure out why WordPress thinks these are 404 to begin with. Does the appropriate content show up when you browse to these pages?

  4. raistlinthewiz
    Member
    Posted 3 years ago #

    yes, the reason it get's a 404 is it's because they're custom pages not bound to content but actually dynamicly generated;

    for ex: http://sc2casts.tv/vod/browse

    if($wp->query_vars['vod']=='browse') include(TEMPLATEPATH . '/vods/browse-vods.php');
                        else if($wp->query_vars['vod']=='all') include(TEMPLATEPATH . '/vods/all.php');
                        else if($wp->query_vars['vod']=='top') include(TEMPLATEPATH . '/vods/top.php');
                        else include(TEMPLATEPATH . '/vods/single-vod.php');
  5. Michael Torbert
    WordPress Virtuoso
    Plugin Author

    Posted 3 years ago #

  6. raistlinthewiz
    Member
    Posted 3 years ago #

    i want my codes stay in plugin as this is a plugin. is there any hooks in all in one seo i can get in and fix this?

  7. Michael Torbert
    WordPress Virtuoso
    Plugin Author

    Posted 3 years ago #

    aioseop_title_single is one of several hooks in AIOSEOP

  8. raistlinthewiz
    Member
    Posted 3 years ago #

    tried all hooks but couldn't manage to fix them for ie.:

    else if($wp->query_vars['vod']=='all') include(TEMPLATEPATH . '/vods/all.php');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic