WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I dont want the pages to exist ie. they go to 404 if you attempt to access them but I want the content on to be indexed in a search, google, bing etc

the custom-post-type content will be displayed in a front page template, in the style of a 'one page layout'.

like this site; http://www.bingu.name/demo/wpmiworks/

share|improve this question

If you take a look at the source code, you'll see how their site works. Basically, all content is queried and displayed in its own div on the page. But most content, except for the desired content, is hidden by default. And then jQuery is used to hide or show what is selected via the navigation. The hash tags also represent a direct link to a particular div. It's actually pretty simple.

Step 1. Query your posts/pages/custom post types depending on what you want displayed and put them in their own divs on the home page template. (Give each div a unique ID.)

Step 2. Set up your Javascript/jQuery to show/hide content based on what's requested. (They've only used basic jQuery animate functions to 'scroll to', 'hide' or 'show' a page/hidden div.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.