• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 7341632

    (@anonymized-7341632)

    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!

    Thread Starter groomedmonkey

    (@groomedmonkey)

    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’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embedding pages as content areas and SEO’ is closed to new replies.