New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
FocalClick.com Affiliate Program
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Not in MY HOUSE!!!!
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Around
    Posts
    790
    Blog Entries
    1
    Feedback Score
    12 (100%)

    Default WP - Adding meta description as summary?

    Is it possible to pull the meta description from Allinone SEO and add that into my page template so that it shows up on my page? I would like to add a "Page Summary" area to each page and would like to have this automatically done.

    Is there a way to do this?

  2. #2
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    Sure, just add the following php code where you want to display the description:

    PHP Code:
    <?php echo get_post_meta($post->ID'_aioseop_description'true); ?>
    FYI, you can use this with any of the all in one seo fields:

    Title:
    PHP Code:
    <?php echo get_post_meta($post->ID'_aioseop_title'true); ?>
    Keywords (although it would be a little spammy):
    PHP Code:
    <?php echo get_post_meta($post->ID'_aioseop_keywords'true); ?>

  3. #3
    Not in MY HOUSE!!!!
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Around
    Posts
    790
    Blog Entries
    1
    Feedback Score
    12 (100%)

    Default

    You are the man Mike! Thanks
    Last edited by NickM; 10-20-2009 at 07:17 PM.

  4. #4
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    Ok, just thinking it might be nice to take it one step further. What if you didn't fill in the description field of all-in-one-seo all of the time or if you just didn't feel like it every now and then. You wouldn't want that to mess up your summary section so you could use this code instead.

    PHP Code:
    <?php
    $seodesc 
    get_post_meta($post->ID'_aioseop_description'true);
    if(
    $seodesc!='') {
    echo 
    $seodesc;
    } else {
    the_excerpt();
    }
    ?>
    This uses the_excerpt of the post if you forget, or are too lazy, to fill in the seo description field.

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    856
    Feedback Score
    10 (100%)

    Default

    I would lean toward writing a distinct summary of each article, rather than automating it and pulling it out of your meta description. Writing an extra one or two sentences per page should be pretty easy, especially if it's just a summary of what else is written on the page.

  6. #6
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    I would lean toward writing a distinct summary of each article,
    For that, you would want to make a custom field named summary, then use the following code to display it:

    PHP Code:
    <?php echo get_post_meta($post->ID'summary'true); ?>
    or, the lazy way to leave all three options as a possibility:

    PHP Code:
    <?php 
    $summary 
    get_post_meta($post->ID'summary'true);
    if(
    $summary!=''
        { 
        echo 
    $summary
        }
        else
            { 
            
    $seodesc get_post_meta($post->ID'_aioseop_description'true); 
            if(
    $seodesc!='')
                { 
                echo 
    $seodesc
                } else { 
                
    the_excerpt(); 
                }
            }
    ?>

  7. #7
    Not in MY HOUSE!!!!
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Around
    Posts
    790
    Blog Entries
    1
    Feedback Score
    12 (100%)

    Default

    Mike, great stuff. If you are available for a small WP coding job, would you pm me?

    Randy - Do you think there would be any SEO negatives to pulling the meta description for an on-page summary? It seems to me that it is natural for the two to be the same as they essentially serve the same purpose - to effectively relate the content and purpose of a page in as few words as possible.

    I feel like this should be two threads now...
    Last edited by NickM; 10-20-2009 at 07:55 PM.

  8. #8
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    856
    Feedback Score
    10 (100%)

    Default

    I doubt there's an SEO negative, but I always try to play it safe with those kinds of things.

  9. #9
    Not in MY HOUSE!!!!
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Around
    Posts
    790
    Blog Entries
    1
    Feedback Score
    12 (100%)

    Default

    True. I guess the less something looks like automated content, the less can go wrong.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. meta description effectiveness
    By MPC in forum Poker SEO Forum
    Replies: 19
    Last Post: 04-29-2010, 05:32 PM
  2. WTB: Summary of WSOP Satellites - NEED TODAY
    By cprpoker in forum Content Services
    Replies: 0
    Last Post: 03-31-2010, 10:00 AM
  3. Lenght of Meta Titles & Description and Click Through
    By gavacho in forum Poker SEO Forum
    Replies: 1
    Last Post: 05-29-2009, 10:32 AM
  4. Merits Of Leaving Description Tag Blank
    By doovde in forum Poker SEO Forum
    Replies: 17
    Last Post: 04-25-2009, 04:23 PM
  5. Description For PAL Marketplace Needs Update
    By PokerNations in forum PAL Suggestions - Questions - Feedback
    Replies: 0
    Last Post: 01-25-2009, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant