Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress PHP - categories
    primarykey
    data
    text
    <p>I think my previous question was over complicated and, to be honest, was confusing me, nevermind the people trying to answer.</p> <p>I currently have to pages, both with one category of posts assigned to them, however both post pages are using the same content.php and content-single.php, but i was both pages to use different iterations of these pages for cosmetic reasons.</p> <p>As an example, visit <a href="http://dev.n8geeks.com/blog/" rel="nofollow">http://dev.n8geeks.com/blog/</a> and click on the first blog post. It displays a thumbnail, which is cool and is what i want. However, now on the "videos" page as seen here; <a href="http://dev.n8geeks.com/videos/" rel="nofollow">http://dev.n8geeks.com/videos/</a> (once there, click on the post) it also shows the thumbnail box (but no thumbnails will be attached on this posts page category).</p> <p>This is why i need to user different iterations of content.php and content-single.php, but i simply don't know how. It would also be great if the "videos" page had the same formatting as the "blog" page, but again, i don't know how to achieve this.</p> <p>The code i'm using for the current "videos" page is as below.</p> <pre><code>&lt;?php get_header(); ?&gt; &lt;div id="content"&gt; &lt;div id="main"&gt; &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt; &lt;?php the_content(); ?&gt; &lt;?php endwhile; else: endif; ?&gt; &lt;?php query_posts('category_name='.get_the_title().'&amp;post_status=publish,future');?&gt; &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt; &lt;h1 class="entry-title"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt; &lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt; &lt;p&gt;&lt;?php the_content(); ?&gt; &lt;?php endwhile; else: endif; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php get_footer(); ?&gt; </code></pre> <p>Thanks in advance, i really appreciate any help like you wouldn't believe - it's 4:33am and i'm going insane trying to find a fix for this.</p> <p>Regards</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload