Wordpress: How can I create an external page or file that contains posts with 1 specific category?
<p>I'm developing a blog and custom theme with WordPress. My homepage has the 5 most recent posts with 4 <code>div</code>s. Each <code>div</code> has a specific title like 'Personal Stories' or 'Tutorials'. I have created, within the WordPress manager, the 4 corresponding categories. I am quite new to PHP and WordPress in general, and I was wondering if it was possible to somehow add an anchor to each of those 4 <code>div</code>s; that link to an external page with a list of posts with those specific categories?</p>

<p>I've tried creating new PHP files and linking the <code>index.php</code> file to them with an <code>&lt;a&gt;</code> tag, but I just simply get an '<strong>ERROR 404</strong>'. I was hoping to implement 'The Loop' on these pages and filter the posts to just those with a specific category.</p>

<p>I've also tried using WordPress functions that create a URL with the category ID. As the <code>div</code>s do not have categories, I manually find them. In the end, I get something like this:</p>

<pre><code>&lt;a href="&lt;?php get_category_link( 3 ); ?&gt;"&gt;
&lt;div id='story' class='circle'&gt;
    &lt;p class='text'&gt;&lt;br&gt;People Stories&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;
</code></pre>

<p>And this is assuming that the number '3' is the ID I found when manually checking the categories.</p>