Show all posts of all categories but excluding a category on custom blog page with pagination of my theme

If you take a look at the category parameters of WP_Query, you’ll see that you can use either cat=-12 or category__not_in’ => 12 to exclude a category with ID 12 in your custom query. I just also want to point out a few things here. showposts is depreciated, you should be using posts_per_page. Also ‘showposts=6’ … Read more

Paginate recent posts widget

Remove: ‘no_found_rows’ => true, from your WP_Query call inside the widget code. Additionally I would suggest to make this change : ‘base’ => add_query_arg( ‘latest_page’, ‘%#%’ ), in your paginate_links call, because add_query_arg() will handle if ? or & is used. This should make the pagination work in your widget. Note: I’m almost, haven’t tested … Read more

Autoblog posts in wpms(network) into main site including featured images

well, what i did finally is to use taxonomies instead of aggregation because cron based solutions are a little bit tricky with server resources and might reduce the performance: install taxonomies plugin add a code to it to attach the blogid of the post as custom field when saving the post add a function to … Read more

WordPress Recent post only showing title

Have a look at the WP_Widget_Recent_Posts class in wp-includes/default-widgets.php to see how it is structured. You can even copy and paste the class in your functions.php, rename it to something else and modify the class to display your images. And don’t forget to add a register_widget(‘NameOfYourClassHere’); hooked to widgets_init.

Small intro before latest blog posts

Two methods: Edit the template file: Find the template file that renders your posts (most likely index.php) and find the place where the post loop starts. Something like: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> Any content added before this code will be shown before your blog posts. Insert via hook: add_action( ‘loop_start’, … Read more

Recent post in the middle of the content

Since you add all the html in the post by hand, have you tried filtering the content? Similar to WordPress’s <!–more–> tag, you could just add <!–my_headline_content–> Then: add_filter( ‘the_content’, ‘my_headline_function_12378′ ); function my_headline_function_12378( $post_content ){ /* * get your recent posts’ data. You’ll find the code with a simple search. * say $headline contains … Read more

How to add thumbnails from recent posts to owl-carousel in wordpress automatically?

I can’t see your site. However, based on the code you added, you could try something like this: css: .owl-controls .owl-pagination .owl-page span{ height: 50px; width:50px; background-size: cover; background-position: center;} JS: $(‘.owl-controls .owl-pagination .owl-page’).each(function(index, value){ $(this).children(‘span’).css(‘background-image’, “url(‘”+$(‘.owl-carousel .owl-wrapper .item’).eq(index).find(‘img’).attr(‘src’)+”‘)”); }); Here is a working example: http://codepen.io/BertoMejia/pen/LRLRBg