hasund
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: MagpieRSS doesn’t cacheOK, but the problem is that the caching doesn’t occur at all. This is a problem, because it frequently leaves a section of the site blank when the connection to the delicious-feed is broken.
I could use the special delicious-javascript-linkroll, but the poroblem with this is that it doesn’t include the description of the items.
Forum: Fixing WordPress
In reply to: Assign a different value to each post in the loopDidn’t seem like it, but I think I found it out playing with some code I have elsewhere on the blog:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $postvariable++;?>
And then
<?php if ($postvariable == 1) { ?> <em>The text that goes before the fifth item: <?php the_title(); ?></em>
etcForum: Fixing WordPress
In reply to: query_posts offsetI copied more of the code and it works fine.
Forum: Fixing WordPress
In reply to: query_posts offsetI can almost, but not quite get it to work, using Kafkaesqui’s code. How do I modify the code for my “second” loop so that it displays whatever I queried it to, except for the post which has the same id as $first_post? This is my existing code (nevermind the $loopcounter which just helps keep track of odd and even posts):
<?php query_posts('showposts=6'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$loopcounter++; ?>This is Kafkaesqui’s code that I couldn’t get to work (and yes, I swapped the endif and endwhile after the loop in order to match this):
<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>I’ve already set the $first_post to be whatever id the first post has. So what I need is a way to melt those different code pieces into one, the reason I can’t quite get it to work is that I don’t know enough php to be able to express what I want to (or to swap the if-while logic of the former with the while-if logic of the latter).
Forum: Fixing WordPress
In reply to: MagpieRSS doesn’t cacheNobody has any experience in overcoming this problem?
Forum: Fixing WordPress
In reply to: Edit post without updating the RSS feedI’m looking for a way to solve this too. I keep having to do some minor update on a post, but I hesitate as I don’t want to disturb the readers.
Forum: Fixing WordPress
In reply to: Strange Javascript Error MessageI use the same plugin as jspirko and I get the same error message in IE. I tried VaamYob’s fix (even copying jspirko’s modified script directly), but to no avail. The error is reproduced on two different blogs with different setups.
Forum: Plugins
In reply to: how to get recent comments for posts in a specific categoryI need this as well.
Forum: Fixing WordPress
In reply to: Built-in MagpieRSS Not Caching?I am having the exzact same problem that kbiglione describes.
I’ve tried different plugins using the built-in MagpieRSS, on two different blogs (with different hosts) and on both of them the section that is supposed to show the feed content frequently displays empty. It seems that MagpieRSS isn’t doing any caching at all, there is no /wp-content/cache directory and I can’t find any references to this in the database.
What gives? How to enable MagpieRSS? I’ve created a cahce directory sritable by the server, but it doesn’t seem to make a difference.
Forum: Installing WordPress
In reply to: “302 Found” after upgrading to 2.0.5I have this problem too, 2.05 and one.com as provider. The plugin solved the problem.
Forum: Fixing WordPress
In reply to: Customizing feeds and feed urlsYup, got it to work somehow…
Forum: Fixing WordPress
In reply to: Customizing feeds and feed urlsI am sure there are more graceful solutions, but my resources(meaning technical knowledge and time) are limited. I got it to work in the .htaccess. Excluding more than one category doesn’t seem to work, so I had to add the categories to be included instead, like this:
RewriteRule ^feed$ ?feed=rss2&cat=1+2+3+6+7 [L]
RewriteRule ^feed/$ ?feed=rss2&cat=1+2+3+6+7 [L]But of course, for every problem solved another one comes along. I noticed that my category feeds (https://site.org/feed/section/category/feed) got the title from the site, just like the main feed (https://site.org/feed) does. This makes them look indistinguishable in a feed reader, confusing users. Obviously I want the main feed to be titled “site name” and the category feeds to be titled “site name: category”. It would also be nice to have category-specific links and descriptions. So I used some code found elsewhere on this forum:
<?php
if (is_category()) {
foreach((get_the_category()) as $cat) {
$titulo = get_bloginfo_rss('name') ." :". $cat->cat_name;
$descripcion = $cat->category_description;
$enlace = get_bloginfo_rss('url') . "/" . $cat->category_nicename . "/";
}
}
else {
$titulo = get_bloginfo_rss('name');
$descripcion = get_bloginfo_rss("description");
$enlace = get_bloginfo_rss('url');
}
?>
<channel>
<title><?php echo $titulo; ?></title>
<link><?php echo $enlace; ?></link>
<description><?php echo $descripcion; ?></description>
It works fine for the category feeds.
But here’s the newborn problem: Because the main feed actually is a composition of category feeds, the system interprets it as one – thus grabbing the title from the category that happens to be assigned to the first post.
Any ideas?
Forum: Fixing WordPress
In reply to: Customizing feeds and feed urlsFor some reason it doesn’t. I’ll try some more in the morning.
Forum: Fixing WordPress
In reply to: Customizing feeds and feed urlsAh, I had that installed already actually, but I’d forgotten about its capabilities. Thanks, it will do for now.
However, the plugin has its limitations (hiding a category from feeds hides it from its own feed too, not just from the main feed), so I’m hoping to be able to use a mod_rewrite solution.
Forum: Themes and Templates
In reply to: Exclude AuthorsThanks, actually, just before returning here to check for answers I came across that plugin, and it does a nice job of hiding the category from the monthly archives. I’ll keep looking for a way to hide the author as well.
Edit: My solution for now is just hardcoding out the user in question in the template-functions-author.php.