Forum Replies Created

Viewing 15 replies - 241 through 255 (of 336 total)
  • Thread Starter ThorHammer

    (@thorhammer)

    No bother, I solved it.

    Thread Starter ThorHammer

    (@thorhammer)

    Sincerely, am I the only one using this excellent plugin? I need help!

    Thread Starter ThorHammer

    (@thorhammer)

    *bump*

    Forum: Fixing WordPress
    In reply to: FATAL ERROR
    Thread Starter ThorHammer

    (@thorhammer)

    And 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??

    Thread Starter ThorHammer

    (@thorhammer)

    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?

    Thread Starter ThorHammer

    (@thorhammer)

    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/

    Thread Starter ThorHammer

    (@thorhammer)

    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..

    Thread Starter ThorHammer

    (@thorhammer)

    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…

    Thread Starter ThorHammer

    (@thorhammer)

    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.

    Thread Starter ThorHammer

    (@thorhammer)

    I solved it myself by querying.

    ThorHammer

    (@thorhammer)

    *bump* anyone who can spot what’s wrong in the code?

    ThorHammer

    (@thorhammer)

    Nice! 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>

    ThorHammer

    (@thorhammer)

    grinneller: 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.

    Thread Starter ThorHammer

    (@thorhammer)

    Thanks, I solved it by adding the exclude in functions.php πŸ™‚

    Thread Starter ThorHammer

    (@thorhammer)

    Excellent, the plugin runs without any error. Thanks for a really useful plugin!

Viewing 15 replies - 241 through 255 (of 336 total)