sumedhinamdar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Creating an all-but-one category feedForum: Themes and Templates
In reply to: Permalink function not working?Yup…
That’s what I am saying…
It does work…and the strange part is, my kind of code works in second section (category=7) if I use your code for the first section (category=-7)…
Forum: Plugins
In reply to: All cforms data has been erased!Yup !!!
Me too faced the exact same problem…
And the solution you told worked perfectly !!!
I am using 2.5 and trying to use cforms 8.7
Forum: Themes and Templates
In reply to: Permalink function not working?Strange…
The second section that is just below this one, displays the News links…
Once I make above changes to the first part (category=-7) as told by you, the second part works correctly the previous way, i.e.
$myposts = get_posts('numberposts=5&category=7'); //GET RECENT POSTS IN NEWS CATEGORY foreach($myposts as $post) :?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>works perfectly fine…
So, the first part is making some side effect…does this have something to do with the_post() call…I read documentation for these API’s, but couldn’t figure out much…
Forum: Themes and Templates
In reply to: Permalink function not working?Why is that a bad way? 😐 …I have done it like shown in a code snippet in the documentation itself…
What is meant by “real loop”?
Why does the_title() work and the_permalink() doesn’t?
What documentation I’ll need to read to understand when to use which API, and when not?
I am perplexed! 🙂