Pageview confusion [closed]

It seems that your Urchin is configured to measure hits on your server instead of page views (this is speculation since I do not have the link to your site). The high number could only be explained by the fact that one pageview would require multiple elements on your site (js files, css files, images, … Read more

WooCommerce, different prices based on location [closed]

The WooCommerce plugin, as of version 2.0, doesn’t support such feature out of the box, but it’s implemented by 3rd party plugins. I developed one of them, so I won’t post the link here because it’s not the right place for advertisement, but you can find the site in my profile.

Call a function with href

You can echo the return value of a function: <a href=”https://wordpress.stackexchange.com/questions/102196/<?php echo plugin_function(); ?>”> But without seeing the actual function, there is no way to give a more specific answer.

Pull Random Images From Options Page [closed]

There’s nothing WordPress-specific about this, just some simple php: // generate an array of numbers $numbers = range( 1, 8 ); // shuffle the array in random order shuffle( $numbers ); // use the first 4 values from the randomized array of numbers echo eh_get_option( ‘eh_slide_image_’ . $numbers[0] ); echo eh_get_option( ‘eh_slide_image_’ . $numbers[1] ); … Read more

WooCommerce plugins permalinks?

Why do you want this? I can’t see any good reason. It’s much better for both usability and SEO to have the titles in the permalinks. But if you REALLY want this, you can use “/shop/%post_id%.html” as a product permalink base. You change this under “Settings” -> “Permalinks” and then at the bottom under the … Read more

bbpress Not Showing: How to troubleshoot?

The “most” stripped-down theme I can think of that can run BBPress is just a single index.php file containing: <?php // get_header(); if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); endwhile; else : _e( ‘Nothing!’ ); endif; // get_footer(); ?> So my guess is that your while loop is missing something … Read more

custom post types shortode stays on top of other page contents. Is there a bug?

You have this code in your shortcode function: if( count($posts) ): echo ‘<ul id=”portfolio-grid” class=”portfolio-grid unstyled ‘.$post_columns.’-cols”>’; foreach( $posts as $post ) : setup_postdata( $post ); ?> <li> <a href=”https://wordpress.stackexchange.com/questions/104016/<?php the_permalink(); ?>” data-largesrc=”<?php if ( has_post_thumbnail() ) { echo ub_featured_img_url(‘portfolio-fullsize’); } else { ?>http://placehold.it/600&text=<?php _e(‘No Thumbnails’, ‘une_boutique’); } ?>” data-title=”<?php the_title() ?>” data-button=”<?php _e(‘View Project’, … Read more