Support » Fixing WordPress » disable the single post page

  • Hi,

    I’m struggling to make a gallery page on my site. I want a blog type gallery page where I can list projects. I’m not keen on going to separate page to view the project so I’ve designed the listed projects to expand and collapse their content when clicked. I don’t really have a need for the single post page.

    Now here’s the tricky part I want all the projects to be RSS readable. When you click on a post it automatically sends the user to the single post page. What I’d prefer is for it to go to the main blog page with the other post titles. What would be really smart is if all the corresponding post was expanded and the others were collapsed.

    At present the page has been coded with some javascript to expand and collapse the posts.

    I’m not sure if this is possible. Here’s what I’ve done so far:

    I’ve tried looking around on this site for anything that sounds similar but I can’t find anything. If anyone can point me in the right direction that would be cool



Viewing 1 replies (of 1 total)
  • If you want post titles to not link to the single post pages, one option is to modify the theme files that list posts. For example, index.php. You should have something that looks like this:

    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>

    Just change it to:

    <h1><?php the_title(); ?></h1>

    And that will just display the title – it will not be a link. Of course, the code used in themes varies, and there may be several bits of code that you will have to change, but that should get you started.

Viewing 1 replies (of 1 total)
  • The topic ‘disable the single post page’ is closed to new replies.