stevenoi
Forum Replies Created
-
Forum: Plugins
In reply to: PHP in QuerypostFound the solution :
<?php $wp_query->query_vars["cat"] = get_option('excludecat'); $wp_query->query_vars["showposts"] = get_option('p-post-show'); $wp_query->get_posts(); ?>Forum: Fixing WordPress
In reply to: Unapprove/mark spam in comments templateSpam is (almost) the same as deleting the comment, so you won’t need an extra link, the follow code will unapprove/approve, but it’s very much…
<?php if ($comment->comment_approved == '0') : // WILL DISPLAY IF THE COMMENT IS UNAPPROVED ?> <?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { $url = clean_url(wp_nonce_url( "/wp-admin/comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" )); echo "<a href='$url'>" . __('Approve') . "</a> "; } ?> <?php else : // WILL DISPLAY IF THE COMMENT IS APPROVED ?> <?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { $url = clean_url(wp_nonce_url( "/wp-admin/comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" )); echo "<a href='$url'>" . __('Unapprove') . "</a> "; } ?> <?php endif ; ?>Forum: Your WordPress
In reply to: Rate My Site Need SOme CriticismLooks good! Personaly I would display less posts on the frontpage
Forum: Plugins
In reply to: Theme options, select multiplebump…
Forum: Plugins
In reply to: Get pages instead of categories.OK 😉
Forum: Plugins
In reply to: Get pages instead of categories.One more question, when I want to get this option (
<?php echo get_option('catexclude');?>) I need to place a “,” after each page name, so I can put them under exclude=. How can I do this?Forum: Plugins
In reply to: Get pages instead of categories.Thanks! Worked!
Forum: Plugins
In reply to: Image upload scriptbump
Forum: Themes and Templates
In reply to: Change theme for certain pagesIf you create a new page you can choose the page template, it will be other than the normal page.php . If you want to create a page template look here : http://codex.ww.wp.xz.cn/Pages#Creating_Your_Own_Page_Templates
Forum: Themes and Templates
In reply to: Categories, Pages, and Posts; help with organizationI don’t get it, do you mean you want to create Categories and Subcategories but they have to look like pages?
Forum: Themes and Templates
In reply to: Php inside a phpOr maybe this : `
<?php echo( $cortam ); {include(TEMPLATEPATH.’/single-portfolio.php’);
} ?>
`Forum: Plugins
In reply to: Page category?bump
Forum: Plugins
In reply to: Page category?bump
Forum: Plugins
In reply to: Exclude category from archivesAh, found the solution !
<?php $wp_query->query_vars["cat"] = -1; $wp_query->query_vars["posts_per_page"] = 16; $wp_query->get_posts(); ?>Wil exclude all post from cat 1.
But 1 last question. If I use the archives, or calendar widget, it will display dates when I published something for cat 1. Is it also possible to exclude that kind of things?
Forum: Plugins
In reply to: Exclude category from archivesSorry, but is it possible to do this without a plugin?