djuradj
Forum Replies Created
-
Forum: Your WordPress
In reply to: My first effort with WordPressYou left <!– in footer, so i’m guessing you didn’t finish your comment.
Generally, i see you went for minimalistic approach. It’s not bad for your first theme. But, i don’t like the first post, it’s too stuffed with content, so it wouldn’t be bad if you could change it somehow.
Forum: Fixing WordPress
In reply to: Paragraph problemEdit: thanks for the help… sorry for a stupid question ??
Forum: Fixing WordPress
In reply to: Paragraph problemForum: Fixing WordPress
In reply to: Loop displaying different postsalchymyth, thanks a bunch…
It works now (i think).
Forum: Fixing WordPress
In reply to: Loop displaying different posts@michaelh
I took the code from here:
https://perishablepress.com/press/2008/09/01/multiple-loops-and-multiple-columns-with-wordpress/@alchymyth
I tried changing my code to one you suggested, but still the same… The problem is THAT IT SHOWS THE LATEST POSTS added to the blog, regardless of the category.Forum: Fixing WordPress
In reply to: Help withd displaying postsThanks! I’ll have a look now, hope it will be useful !
Forum: Themes and Templates
In reply to: Guzel magazine theme question!Forum: Themes and Templates
In reply to: Guzel magazine theme question!<?php $now = gmdate("Y-m-d H:i:s",time()); $lastmonth = gmdate("Y-m-d H:i",gmmktime(date("H"), date("i"), date("s"), date("m")-1,date("d"),date("Y"))); $popularposts = "SELECT ID, post_title, post_date, comment_count, COUNT($wpdb->comments.comment_post_ID) AS 'popular' FROM $wpdb->posts, $wpdb->comments WHERE comment_approved = '1' AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status = 'publish' AND post_date < '$now' AND post_date > '$lastmonth' AND comment_status = 'open' GROUP BY $wpdb->comments.comment_post_ID ORDER BY popular DESC LIMIT 5"; $posts = $wpdb->get_results($popularposts); $popular = ''; if($posts){ foreach($posts as $post){ $post_title = stripslashes($post->post_title); $post_date = stripslashes($post->post_date); $comments = stripslashes($post->comment_count); $guid = get_permalink($post->ID); $popular .= '<li><a href="'.$guid.'" title="'.$post_title.'">'.$post_title.'</a> <span>With <a href="'.$guid.'#commenting" title="Comments on '.$post_title.'">'.$comments.' Comments</a> Since '.$post_date.'</span></li>'; } }echo $popular; ?>
This is the code. I’m not that good in editing php… I tried the plugin that you suggested, it’s good and it works BUT i’m not satisfied because it’s not the same as the theme’s default one.
The default popular function shows the text’s title and bellow shows the number of comments since a post publishing date.
The plugin you provided show the text’s title and number of comments next to it… Inb order to do the things the default popular theme does, it requires editing, and i am not that good at it.
So, can you or someone else look at the code, and say how to simply edit it to show posts with the largest amount of comments…
Forum: Installing WordPress
In reply to: Question about XML SItemaps and Google webmaster ToolsOn my Google Webmaster account, under section Stitemaps for my site, i sae a red X, which probably means that it wasn’t receiving data from it.
Now it works fine. It a green whateveryoucallit sign. The X was probably due to the fact that my host was having some issues with the servers, and some parts of the site weren’t available.
Although, i still have to notice, that my sitemap.xml.gz file is uptading itself… Whenever i add some news, the number of submitted links increases (when i look at my Google Webmasters account).
THAT IS NOT THE CASE WITH sitemap.xml. Until i manually resubmit the sitemap, nothing happens…
Can anyone clear that for me?
Forum: Installing WordPress
In reply to: Question about XML SItemaps and Google webmaster ToolsYes, i’m using google xml sitemap generator, but i’m receiving a red x next to the sitemap.xml, while sitemap.xml.gz works ok.
And may i ask what is the difference between the two?
And do i must rebuild the sitemap manually every day???Forum: Fixing WordPress
In reply to: Long loading time when posting new postWell, a whole bunch of them is installed, actually…
AdSense Manager, All in One SEO Pack, Contact Form 7, CyStat, Get The Image, NextGEN Gallery, the_excerpt Reloaded, Tweet This, WP-EMail, WP-Polls, WP-PostRatings, WP-PostViews, WP-Print, WP-UserOnline, Yet Another Related Posts Plugin…
Forum: Fixing WordPress
In reply to: Long loading time when posting new postIt didn’t help me…
The strange is, that when i get the ‘404 ot fouznd’ error, i see the post i was trzing to publish among mz published posts, but there are also a few drafts of it as well, and i didn’t create them…
That’s odd for me… And the loading time can take up to several minutes…