Hiranthi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Active class for taxomony, when showing the postget_the_category gives you the categories for a post. Not sure if this works with custom post types though (haven’t tested it and couldn’t find anything mentioned about that on the get_the_category page).
Forum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?@frederick, if I want paid support from you for this, what will it cost me? (I know there’s a Support page in the plugin admin, but I can’t figure out which option I should choose).
Forum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?Hmm.. asked the hosting provider and the settings I mentioned in my last reply are set/enabled.
Forum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?Could these settings be the problem?
mod_mime: Not detected
mod_expires: Not detected
mod_deflate / mod_gzip: Not detected
mod_headers: Not detected
mod_env: Not detected
mod_setenvif: Not detected
mod_rewrite: Not detectedForum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?Hmm.. I added that to the wp-postviews.php (emptied cache after that), but it still isn’t working..
Forum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?WP Postviews is not a poll plugin, it counts the views of your posts. And ofcourse it won’t work if caching is 100% (iow: for everything) enabled, since that would mean not all views are counted.
The funny thing is that the plugin doesn’t count views at all since I activated W3 Total Cache, when you would expect it to count at least a few (when the page cache is getting build).
So, I tried the solution that’s mentioned in the other topic, but that doesn’t work.
I also tried disabling the cache for that specific query by adding “meta_key = ‘views'” to the ignored stems, but that doesn’t work either.Forum: Plugins
In reply to: [WP-PostViews] [Plugin: WP-PostViews] WP Post Views With W3 Total Cache ?@ezzal, did you get it working? I added “meta_key = ‘views'” to the “Ignored query stems”, but it’s still not working (that’s about the most unique thing from the query I could find).
In another topic I read you had to set ‘disk (enhanced)’ to ‘disk (basic)’, but that didn’t work either..
Forum: Fixing WordPress
In reply to: get_categories includes categories with draftsI’ve just been told (twitter) this is a common problem (the function calls all cats instead of only those with published posts).
Forum: Fixing WordPress
In reply to: get_categories includes categories with draftsI’m using pretty much the default parameters, yes. As I said I couldn’t find anything about the drafts related to the parameters.
The categories – with only drafts in them – that are getting displayed are subcategories.
Forum: Themes and Templates
In reply to: Display content after More tagYou can also use something like this:
<?php $morestring = '<!--more-->'; $explodemore = explode($morestring, $post->post_content); echo $explodemore[0]; // before the more-tag echo $explodemore[1]; // after the more-tag ?>However, you should watch where you’re putting the more-tag though.
Forum: Fixing WordPress
In reply to: get_categories alphabetic order, no matter whatWhat I added to functions.php:
function displayPosts( $id ) { $cat = get_category($id, OBJECT); echo '<p><a href="'.get_category_link( $id ).'">'.$cat->cat_name.'</a> <small> ('.$cat->category_count.' ' . ($cat->category_count == 1 ? 'post' : 'posts') . ')</small>'; if ($cat->category_description != '') { echo '<br />'.$cat->category_description . ' <a href="'.get_category_link( $id ).'">View posts »</a>'; } echo '</p>'; /* subcategories */ $args = array( 'type' => 'post', 'child_of' => $id ); foreach (get_categories($args) as $cat) { echo '<p><span class="subcategory">'; echo '<a href="'.get_category_link( $cat->cat_ID ).'">'.$cat->cat_name.'</a> <small> ('.$cat->category_count.' ' . ($cat->category_count == 1 ? 'post' : 'posts') . ')</small>'; if ($cat->category_description != '') { echo '<br />'.$cat->category_description . ' <a href="'.get_category_link( $cat->cat_ID ).'">View posts »</a>'; } echo '</span></p>'; } // end foreach } // end displayPostsWith that function you’ll have to manually add this per main-category in a template (ie. displayPosts( 4 ); displayPosts( 6 ); etc.).
I haven’t had any problems with the My Category Order and upgrading to WP2.8.4 (not that I remember anyway).
Forum: Plugins
In reply to: [New Plugin] User MessagesA shame that the capability names are too long (using Role Manager with custom roles and keep getting errors), so I can’t give anyone the capability of sending emails, sending/receiving PM’s etc.
Appears I can’t even give ’em the capability of using the plugin. Seems to me the dashes in the capability names are the issue (since they all don’t work and NextGen capabilities do work and they’re a bit long too).
Forum: Fixing WordPress
In reply to: Query based on Custom Field. To create a link list?I replied to a thread you posted a reply to (Custom select query – sort by meta value within category).
Forum: Fixing WordPress
In reply to: Orderby custom sorting links?I replied to a thread you posted a reply to (Custom select query – sort by meta value within category).
Forum: Fixing WordPress
In reply to: Custom select query – sort by meta value within categoryYou need the page LesleyT is talking about and use the query they have as an example under ‘Query based on Custom Field and Category‘.
But, in your case you’re not trying to filter it with a specific category. From what I read in your own topics you want to filter ’em on custom fields only. In that case you’ll have to look at the examples from that page onder ‘Query based on Custom Field and Sorted by Value‘.