WordPress portfolio pagination on home page

You can set the amount of posts to display in the admin panel under ‘Settings > Reading > Blog pages show at most .. posts’. If you want to style this afterwards, more information here: http://codex.wordpress.org/Pagination Or a useful plugin: https://wordpress.org/plugins/wp-paginate/

Ajax load more posts button

1) You should really use a separate JS file. 2) Check this guide: https://premium.wpmudev.org/blog/using-ajax-with-wordpress/

Can a scrollable date picker be done in WordPress for archives?

I’m going to leave the JavaScript/jQuery of the scroller up to you. But basically, run a loop of dates in that scroller. Then, when clicked, pass that date via AJAX to the server. Then use that date to query_posts, which you then return and insert into your dom. Use http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ for the AJAX functionality. I … Read more

How to make a rest style plugin?

I got a little piece of code here, but it should/could probably be improved. Create new query_vars Create new rewrite rule Redirect to specific template which then handles your parameters Create new query vars function register_gallery_query_vars($vars) { $vars[] = ‘gallery_id’; $vars[] = ‘image_id’; return $vars; } add_filter(‘query_vars’, ‘register_gallery_query_vars’); Add rewrite rule function custom_rewrite_gallery() { add_rewrite_rule(‘^gallery/([0-9]+)/([0-9]+)/?’, … Read more

An unidentified error has occurred when deleting a category

Your taxonomy registration in your example is showing this: function insurance_all_category(){ $labels = array( ‘name’ =>_x( ‘Insurance all category’, ‘taxonomy general name’ ), ‘singular_name’ => _x( ‘Category’, ‘taxonomy singular name’ ), ‘search_items’ => __( ‘Search Category’ ), ‘all_items’ => __( ‘All Categories’ ), ‘parent_item’ => __( ‘Parent Category’ ), ‘parent_item_colon’ => __( ‘Parent Category:’ ), … Read more