[Solved] How To Div Number’s ul into a loop?

So you open the outside the while loop but you keep closing it inside the while loop try this code: echo ‘<ol>’; $i = 0; while ( $cat_posts->have_posts() ) { $cat_posts->the_post(); ?> <li><div class=”a”><?php echo $i++ + 1; ?> </div> <a class=”post-title” href=”https://stackoverflow.com/questions/26014814/<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?> Apk Android Download”><font color=”#000″><?php the_title(); ?></font></a> … Read more

[Solved] How can i set post featured image as background of wordpress post title? Is there any plugin for that?

In Single.php create a div wrapping your title and on that div add <?php $featured_img_url = get_the_post_thumbnail_url($post->ID, ‘full’); ?> <div style=”background-image:<?php echo $featured_img_url; ?>”> <h1>Your Title</h1> </div> solved How can i set post featured image as background of wordpress post title? Is there any plugin for that?

[Solved] Pass PHP variable to server

First of all, you can’t send arrays directly through GET requests (GET requests are the ones with the parameters visible in the url, in layman terms) therefore, you should do the following: $date = “$year-$month”; //example: 2013-09 $link = admin_url(‘admin-ajax.php?my_date=”.$date.”&post_id=’.$post->ID.’&nonce=”.$nonce); breaking the url down to the components, in layman terms: everything before the ? is … Read more

[Solved] I want to delete a specified row in an html table where a class cannot be added [closed]

It’s hard to understand your question so please clarify if this is not your requested answer. You could use the css selector :nth-child(x) to select the correct cells that need to disappear. Then you can use display: none; to hide these cells. If you don’t want other cells to jump in weird places you could … Read more

[Solved] WordPress use different template [closed]

you can read all this at . http://codex.wordpress.org/Templates but if you want make a single template for you custom post type you can use single-post_type_slug simply create a file single-darhang.php wordpress will use this as single template of your custom post type . solved WordPress use different template [closed]

[Solved] I move all the files and folder from the wordpress root directory to wordpress sub directory

Add below code to functions.php in active theme. When you open login page yourdomain.com/EMC/haris/wp-login.php (you don’t have to log in) the options will be updated. After all remove the code from the functions.php. update_option( ‘siteurl’, ‘http://yourdomain.com/EMC/haris’ ); update_option( ‘home’, ‘http://yourdomain.com/EMC/haris’ ); 4 solved I move all the files and folder from the wordpress root directory … Read more

[Solved] Want to search like that [closed]

This is not a trivial problem, but conceptually you would approach it as follows. In a text input, call a function every time a user enters a value: <input class=”someClass” id=’someId’ name=”someName” type=”text” onkeyup=’getProperties(this.value)’ > Where getProperties uses ajax and might look something like this: function getProperties(value) { $.post( “somePHPFile.php”, {query: value}, function (data) { … Read more

[Solved] How to create pagination [closed]

You need more than try this for size:: $results_per_page = 10; $current = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1; global $wpdb; $table = $wpdb->prefix.”car_saver”; $rows = $wpdb->get_results(“SELECT * FROM ” . $table ); if( !empty($wp_query->query_vars[‘s’]) ): $args[‘add_args’] = array(‘s’=>get_query_var(‘s’)); endif; $args = array( ‘base’ => @add_query_arg(‘paged’,’%#%’), ‘format’ => ”, ‘total’ => ceil(sizeof($rows)/$results_per_page), … Read more

[Solved] Woocommerce Progressive extra cost based on total number of items in the cart

Based on (this answer) WooCommerce Cart Quantity Base Discount, you can add a progressive fee based on total number of items: add_action( ‘woocommerce_cart_calculate_fees’,’woocommerce_cart_extra_cost’, 10, 1 ); function woocommerce_cart_extra_cost( $cart ) { if ( is_admin() && ! defined( ‘DOING_AJAX’ ) ) return; $cart_item_count = $cart->get_cart_contents_count(); // CONDITIONAL ITEMS QUANTITY FEE AMOUNT if( $cart_item_count < 6 ) … Read more