ThorHammer
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: SidePosts Widget] No categories to choose?No bother, I solved it.
Forum: Plugins
In reply to: [Plugin: SidePosts Widget] No categories to choose?Sincerely, am I the only one using this excellent plugin? I need help!
Forum: Plugins
In reply to: [Plugin: SidePosts Widget] No categories to choose?*bump*
Forum: Fixing WordPress
In reply to: FATAL ERRORAnd the fatal errors continues:
Allowed memory size of 25165824 bytes exhausted (tried to allocate 1200 bytes) in /path/mysite.com/mysite.com/httpd.www/wp-includes/media.php on line 345
Allowed memory size of 25165824 bytes exhausted (tried to allocate 311296 bytes) in /path/mysite.com/mysite.com/httpd.www/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2047
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 253321 bytes) in /path/mysite.com/mysite.com/httpd.www/wp-includes/http.php on line 1324
What the fat??
Forum: Your WordPress
In reply to: Your feedback, please!Thanks, I have been wondering how to separate the posts from Ads for quite a while. Actually, the ads are not present on the front page before the small 125×125 ads. Everythign else is actually content, or posts.
I thought about putting the “more news”, or the extract from the news archive, in the sidebar, but found the page to consist of too much text on the top.
the site itself is aligned to the left, yes. I presumed viewers with wide screens used browser windows which allowed them to have two or more browseres on the scrren at the same time, but perhaps I am thinking wrong?Forum: Themes and Templates
In reply to: Query posts by popularity?LOL – it is always a good idea to read the plugin usage information. Case solved. Case closed. Lesterchan rules.
Oh, by the way, here is the query live:
http://www.winonweb.net/category/featured/Forum: Themes and Templates
In reply to: Query posts by popularity?Thanks for your suggestions!
I have tried both your suggestions, but the ranking itself won’t change. The values in the table is numeric, INT. So I am still quite lost..Forum: Themes and Templates
In reply to: Query posts by popularity?Now I tried to include a plugin, wp-postratings. This one adds 3 custom fields to each post. One of them is suitable to rank the posts. I added this into the beginning of my code (as found in the Codex):
<?php $querystr = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'ratings_average' AND wposts.post_type = 'post' ORDER BY wpostmeta.meta_value ASC "; query_posts('cat=32&showposts=100'); ?>But it doesn’t display the posts as they are ranked (numeric, in the custom field). So… I am a bit closer, BUT…
Forum: Themes and Templates
In reply to: Query posts by popularity?I have tried some of the google hits, but it doesnt work for me. I just want to have this query done by #times the post is read, i.e, a honest ranking.
And I DONT’t want to use a plugin, just a query.Forum: Themes and Templates
In reply to: What is wrong with this code?I solved it myself by querying.
Forum: Themes and Templates
In reply to: magazine-style site w/grouped excerpts*bump* anyone who can spot what’s wrong in the code?
Forum: Themes and Templates
In reply to: magazine-style site w/grouped excerptsNice! Thanks! BTW: This is my code. I dont understand why it only displays ONE post in the category?
?php get_header();?> <div id="home"> <div id="content"> <?php query_posts('cat=32&showposts=500'); ?> <?php $i=0; if ($posts) { foreach($posts as $post) { start_wp(); $i++; $post_image = get_post_meta($post->ID, 'image', $single = true); $post_alt = get_post_meta($post->ID, 'alt', $single = true); ?> <div class="detailbox"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent URL to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="clear"></div> <? if($post_image !== '') { // display the image, its alt text, and wrap it with a link to "single.php" ?> <div class="imgleft" > <a href="<?php the_permalink(); ?>" title="<?php if($post_alt !== '') echo $post_alt; else the_title(); ?>"> <img src="<?php echo $post_image; ?>" alt="<?php if($post_alt !== '') echo $post_alt; else the_title(); ?>" style="width:250px; " /></a></div> <?php } // endif // If no image else { echo 'Sorry, no image'; } // endelse ?> <?php echo $post->post_excerpt; ; ?> <div class="clear"></div> </div>Forum: Themes and Templates
In reply to: magazine-style site w/grouped excerptsgrinneller: I am looking for soemthing similar. I want to create an archieve page for only one category of posts, displaying title,thumbnail (from a custom field added image to the post) and the excerpt.
My dream is to have these displayed in two columns. I have scanned all plugins and read in the codex, but I just dont know how to do this. I only understand hoe to display the title and the excerpt and that I need to have this before the loop on the actual archieve template:
<?php query_posts('cat=32&showposts=500'); ?>
How to display the image and split the listings half way in order to get two columns is too much for me.Forum: Themes and Templates
In reply to: Help with category excludeThanks, I solved it by adding the exclude in functions.php π
Forum: Plugins
In reply to: [Plugin: Category Templates] Nice-BUT PHP errorExcellent, the plugin runs without any error. Thanks for a really useful plugin!