sithicus
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Category Specific MenuI am now thinking I need to somehow drop…
<?php
$posts = get_posts(‘numberposts=5&category=”<?php echo $catID ?>”‘);
foreach ($posts as $post) : start_wp(); ?>
<?php the_title(); ?>
<?php endforeach; ?>because the catID shoudl automatically be set to the current category.. when inside that category..?
Forum: Fixing WordPress
In reply to: Menu listing all posts in current categoryLuhman,
I’m sure you have solved this by now, but I think when you clikc on the permilink it’s bringing you to a different page in the template therefor you need to create a new menu… for that page.
Forum: Fixing WordPress
In reply to: A way to see… which template is being used.. in the source?Basically what i’m saying is that my template hierarchy isn’t working.. but I think it should be.. I feel like I must have done something really silly.. do I need to make it a template with the tags at the top also.. or just change the file name…?
Forum: Fixing WordPress
In reply to: Link to a category outside of the loop..u guys rock. thanks so much.. i see in permilinks.. fill cat in: )
Forum: Fixing WordPress
In reply to: Link to a category outside of the loop..I’m not sure what you mean… could you expand on that just a little..
Forum: Fixing WordPress
In reply to: Link to a category outside of the loop..ok.. what happens if you named a page the same name as the category and gave it the same slug.. ??
Forum: Fixing WordPress
In reply to: Link to a category outside of the loop..https://www.christineconradt.com
I’m trying to make the My Movies page link to a specific category.. right now it is linking to a page I created.. it works fine but.. it just seems like I should be creating a specific template for that category..
Forum: Fixing WordPress
In reply to: Only listing a few post titles in a catagory..?Yet no thoughts on how to get this code to list more then 5 results… ?
Forum: Fixing WordPress
In reply to: Only listing a few post titles in a catagory..?I hope that helps.. when posting code.. do I have to put each line between the
` ?
Forum: Fixing WordPress
In reply to: Only listing a few post titles in a catagory..?<div class="cat-title">food & nutrition:</div>
<ul>
<?php $posts = get_posts('category=2');
foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
Forum: Fixing WordPress
In reply to: <–More–> Tag in excerpt.. custom one..I’m pretty sure it won’t do what I want to do.. but now I’m not even sure wehre to begin and how to craft this… any thoughts..?
Forum: Fixing WordPress
In reply to: Simple.. List all posts for specific catagory on catagory page..I’ve done both of those… I’ve got it to show only the title that i wanted, but I wanted to show ALL of the titles of ALL the posts under a single catagory.
Forum: Fixing WordPress
In reply to: Simple.. List all posts for specific catagory on catagory page..This is what I have so far, the results can be seen here:
https://www.versatables.com/wp/category/cpu-holders/You can see that it is only listing one post title and then lets you nav back thru them..
<? php if (have_posts()) : ?>
<h2 class="searchresult">Search Results</h2>
<div class="searchdetails"> Search results for "<? php echo ""."$s"; ?>" </div>
<? php while (have_posts()) : the_post(); ?>
<h2 class="searchresult">
" rel="bookmark" title="Permanent Link to <? php the_title(); ?>">
<? php the_title(); ?>
</h2>
<? php endwhile; ?>
<? php else : ?>
Not Found
<? php endif; ?>
I wasn’t really able to find something that I saw would work this way… am I missing something really obvious…
Forum: Fixing WordPress
In reply to: How do I create a RSS feed for latest comments?How do I use it…?