jalacom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Tag list not linking to list of tagsYup looks like that’s doing the trick.
Thanks again for your help.Forum: Fixing WordPress
In reply to: Tag list not linking to list of tagsAlchymyth,
Category 4 is what I am using for the main content of the blog. Category 5 is used on the page Brilliant as a “subblog”. Not my favorite set up but this is what the client wanted so they could have two separate topics. Like i mentioned before the code I placed in tag.php is pretty much the same code as that from my main index.php. I wasn’t sure what I needed to alter between the two.
So I should change tag.php to the normal loop and it will return posts with only the tag clicked? I’ll give that a shot.
Thanks for your help. I’m still very new to this.Forum: Fixing WordPress
In reply to: Tag list not linking to list of tagsHi alychymyth,
I created a tag.php file. The code is pretty much the same as my index.php. Perhaps I’m not asking it to pull the right content?
Here’s the first section of tag.php up until the opening of the loop:
tag.phpForum: Fixing WordPress
In reply to: the_date displaying wrong yearPerfect. Thanks.
Any ideas why the<?php the_date('Y'); ?>
didn’t work correctly? Was that not the correct application of that include?Oh looks like this was the problem
<?php$my_query
needs a space<?php$ my_query
Think its working. Thanks so much!Esmi,
Thanks for the reply. I tried applying it that way, but it gives me an unexpected T_variable error on line 6. Which would be that line:<?php$my_query = "showposts=10&cat=4&paged=".get_query_var('paged'); $my_query = new WP_Query($my_query); ?>
oh I wish I knew what I was doing ??
This is my full code:
<?php $my_query = "showposts=10&cat=4"; $my_query = new WP_Query($my_query); ?> <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> <!-- CONTENT --> <?php endwhile; ?> <?php else : ?> <p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p> <?php endif; ?>
So this would go in the first line I wouldn’t have to change the if and while statement?
ah, ok I was just finding a post you had left on another forum question about the paged parameter. I’ll try that out. Thanks!
Forum: Fixing WordPress
In reply to: How to display a Custom Field namefigured it out:
echo '<li class="recipelist"><a href="'.get_permalink($post->ID).'">'.get_post_meta($post->ID, 'recipe', true).'</a>';
Forum: Fixing WordPress
In reply to: How to display a Custom Field nameI had the line wrong I would have to make changes here:
echo '<li class="recipelist"><a href="'.get_permalink($post->ID).'">'.get_the_title($post->ID).'</a>'. $speaker_name . $scripture.'';
And it looks like I have some extra stuff I need to remove there such as $speaker_name . $scripture. It’s content from the original code snippet I found from someone else.
So I did this:
echo '<li class="recipelist"><a href="'.get_permalink($post->ID).'">'.get_post_custom_values($recipe).'</a>';
The link is being generated when I inspect the element in the browser, but it’s not echoing out the name of $recipe.What am I doing wrong?
Read through the readme.txt file in the plugin it has instructions for making it function. See if that helps. I’m giving it a shot now
Same message for me too. Anyone know how to fix this?
Forum: Fixing WordPress
In reply to: Return only selected Tag resultsHere’s the link to what i currently have current blogroll to modify for tag.php
Forum: Fixing WordPress
In reply to: display the number of posts using a tag in the sidebar?For anyone interested i found this is a better way to do it. It’s streamlined and returns the 20 most used tags. You can change that to whatever you like. Hope this helps!
<ul id="tags-list"> <?php $tags = get_tags( array('orderby' => 'count', 'order' => 'DESC', 'number'=>20) ) ); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link ($tag->term_id) . '" rel="tag">' . $tag->name . ' <span>(' . $tag->count . ')</span> </a></li>'; } ?> </li> </ul>