WordPress.org

Ready to get started?Download WordPress

Forums

Embedding pages as content areas and SEO (3 posts)

  1. groomedmonkey
    Member
    Posted 3 years ago #

    Ok I have seen this in practice in a few themes where, as an example, one uses the "About" page as an embed in the sidebar or footer of a site. Basically a bit of a hack way to get multiple content areas on a single html page. One uses:

    query_posts('pagename=');

    to do this. I have found it quite useful but have been weary to push it too far as I have been wondering about the SEO impact of this as each "content area" created this way exists as a page on it's own creating duplicate content across the site.

    Any suggestions or comments? I can't see having multiple content, especially if duplicated on same page (picture About page with the About content also in the footer) as being anything but bad.

    Is there any way of creating post types that aren't "published" but can still be queried as areas of pages?

  2. bfred.it
    Member
    Posted 3 years ago #

    Sure, I believe you can hide pages from the web and still be able to query them anywhere in the website. You can probably set them as "private" and still retrieve them via query_post.

    I hope it's not too late!

  3. groomedmonkey
    Member
    Posted 3 years ago #

    Thanks bfred.

    I just tested it and it works querying private pages so I'm happy. This makes WordPress really flexible.

    Hopefully I can set up what I'm attempting where a page will query two sub pages which are left/right columns of the rendered page. Can do it on a page-by-page basis but I haven't worked out the query to auto look for the subpages like:

    query_posts('pagename=get-current-page/left');
    query_posts('pagename=get-current-page/right');

Topic Closed

This topic has been closed to new replies.

About this Topic