Double count view in archive.php

I’m having a hard time using this snippet I’m getting double views each time the post is queried. This is in my functions.php file: function getPostViews($postID){ $count_key = ‘post_views_count’; $count = get_post_meta($postID, $count_key, true); if($count==”){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, ‘0’); return “0”; } return $count; } function setPostViews($postID) { $count_key = ‘post_views_count’; $count = get_post_meta($postID, … Read more

Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily

I’m a non-programmer and run a food website (plain – jane Dreamweaver) along with a simple WordPress powered blog. I envisioned creating a food website that is both user powered (one can submit recipes, tips articles, photos etc) and also act as a mini social network (people can blog) – create profiles, make friends etc. … Read more

Display a view from another controller in ASP.NET MVC

Is it possible to display a view from another controller? Say for example I have a CategoriesController and a Category/NotFound.aspx view. While in the CategoriesController, I can easly return View(“NotFound”). Now say I have a ProductsController and an action and view to add a product. However, this action requires that we have a Category to … Read more

Tinymce shortcodes within shortcode contents

I am using wp.mce.views.register to create a simple view for my shortcode in the tinymce editor, this works fine but i am looking for a way to have “nested” shortcodes e.g. [column_3] [info_box] <p>Some info here!</p> [/info_box] [/column_3] and to have them rendered nicely. This is simple enough frontend with do_shordcode($shortcode_content); but I havent been … Read more