External11
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sort taxonomies shown in the menuclosing
Forum: Fixing WordPress
In reply to: Sort taxonomies shown in the menuworks like a charm, big thanks!
Forum: Fixing WordPress
In reply to: List a page which has the same title like current post's meta valueHi Alchymyth,
This function retrieves a post given its title. If more that one post uses the same title, the post with the smallest ID will be returned.
However I need to ‘order’=>’ASC’, ‘orderby’=>’date’.
It seems like to solution is not that easy…
Forum: Fixing WordPress
In reply to: List a page which has the same title like current post's meta valuenone of the codes is working.
By the way here is the difference:
name (string) – use post slug.
pagename (string) – use page slug.maybe it is necessary to sanitize the title already on he first row.
Forum: Fixing WordPress
In reply to: List a page which has the same title like current post's meta valueI tried this but it is showing no results:
<?php $pagetitle = get_post_meta($post->ID, 'car_model_range', TRUE); $args=array( 'post_type' => 'page', 'post_status' => 'publish', 'pagename' => sanitize_title($pagetitle), 'order'=>'ASC', 'orderby'=>'date', 'posts_per_page' => 1, ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php get_template_part( 'partials/caritem', 'page' ); ?> <?php endwhile; } ?>
Forum: Fixing WordPress
In reply to: If meta value is X, then this, otherwise thatthis is not working, the result is
Yes2011-present Pagani Huayra
No2009 Pagani Zonda Rfor
<?php if( the_field('in_production')== 'Yes' ) echo date('Y'); else the_field('production_years'); ?> <?php the_title(); ?>
as you can see, it is also printing the Yes/No
Forum: Fixing WordPress
In reply to: More meta values in filtering postsWorks like a charm!
Exactly what I was looking for ?? Works perfectly. But if you update WordPress, the functions.php file gets overwritten, isn’t it?
Forum: Fixing WordPress
In reply to: How to exclude parent category from listing posts in sidebarHi Andrew,
I’ve modified the template, however the result is the same yet…
Have you tested it?
Thank youForum: Fixing WordPress
In reply to: How to exclude parent category from listing posts in sidebarHi Andrew, thank you but I need to replace the number with a variable. I have a lot of categories…
It would be really great to have 3 php codes: one to insert to a post, which will count up views, second one just for showing the views (without counting them) and a third one showing a list of top viewed posts (in this case it would be perfect to be able to specify number of posts, and for how many recent days would it count). Just some development ideas…
Hello,
I want to show number of views in the category view and also on index page.
I am using your plugin on following site:
Thank you for your support.