Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

nicholas maddren
nicholas maddren
12,793 Points

Posts have there own URL?

Hello, I'm new to Wordpress and been putting together a template for a site I am making. My question is how can I disable posts having their own page? For example if you visit: http://www.thornabytyres.com I have added some content blocks, which are posts so my client can change the "Limited Time Offers" block at the middle right. However these have links for some reason that will take them to that post, how can I stop this as I just want an easy solution for my client to change content? Thanks

1 Answer

Shamime Boodhoo
Shamime Boodhoo
19,054 Points

Probably the easiest way is to remove the <a> tags from the PHP files. In your PHP files you probably have something like this <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> i.e. the Title text for each post is being wrapped in the anchor tags. If you remove those <a> tags from the code that will stop the posts from being clickable.