Dashnorth
Forum Replies Created
-
Forum: Plugins
In reply to: [Enhanced Category Pages] Image only URL without HTMLnever mind. figure it out.
<?php $banner_img = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); echo $banner_img[0]; // returns only the url of the full image. ?>
Forum: Plugins
In reply to: [Enhanced Category Pages] Image only URL without HTMLbtw. I don’t know why but I’m not able to display the content of the category by using this:
<?php global $enhanced_category; //get enhanced category post and set it up as global current post $enhanced_category->setup_ec_data(); ?> <!-- enhanced category content --> <?php the_post_thumbnail("medium"); ?> <?php get_template_part( 'content', 'page' ); ?> <!-- custom fields --> <?php get_post_custom(); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?>
instead I had to include() the
content-ecp.php
file directly, and it’s now working.Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DB@totels wow!! thank you so much for this one! I’m going to implement it later today and see how it goes. If it’s not a problem for you I’d like to see the code you mentioned about the disconnection.
P.s. I think this must be added in the plugin itself. And maybe think of another way to cache the results, as fallback..
thank you totels.
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBit’s still not working for me… nothing saved in db even after the last update.
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBReason why transient isn’t saved in DB might be because of Memcache
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBI’ve also noticed in your code for the “clear cache option” that you assume everybody has as a table prefix
wp_
for example I don’t havewp_options
butcc666_options