wordpress

.htaccess clashing in two htaccess in two subdirectory

I have a directory with the following structure: Domain/job (folder) –.htaccess –job.php Domain/offering-page (wordpress folder) –.htaccess –othersfile job/.htaccess code:- RewriteEngine On RewriteRule ^([a-zA-Z0-9-/]+).html$ job.php?url=$1 RewriteRule ^([a-zA-Z0-9-/]+).html/$ job.php?url=$1 offering-pge/.htaccess code:- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> I have problem in only offering-page folder. When I go…
Read more

WordPress gallery and paginate problems

I made wordpress gallery.And i made paginator with short code. It works well. But there is a problem. When i list pages numbers it shows all numbers like 1-2-3-4-5-6-7-8-9-10. . But i want to show like 1 … 5 – 6 – 7 … 20 or 1 … 13 – 14 – 15 … 32 When i show all number…
Read more

How can i use different mark-up and content in each tab on WordPress

I have 3 tabs which made with jQuery Ui, in each tab i need to make different mark up and content, each tab have unique id. How can i insert, to tab with id #tabs-2, this content. If i try to insert this after the_content, its generates in each tab same thing. <div id=”tabs-2″> <div class=”row”> <div class=”col-md-3″> <img src=”img/about_multi.gif”…
Read more

Adding category selection to WordPress countdown timer shortcode

I’ve got a countdown timer that pulls event info from my events in WP, only I need to be able to select the category it displays. Does anyone know what to add to the coding? As I’ve tried, but whatever I do fails miserably. <?php add_shortcode(‘cs-next-event’, ‘cs_shortcode_next_event_render’); function cs_shortcode_next_event_render($params, $content = null) { global $wpdb; extract(shortcode_atts(array( ‘title’ => ”, ‘image’…
Read more

Display woocommerce attributes

I’m looking to display a custom attribute of graph-title on content-single-product.php I’ve tried all the solutions listed in the following: Woocommerce getting custom attributes and I’ve looked around at multiple other solutions but its just not showing. Any help? Source: wordpress

WordPress Cron Job to download files

I am using pitch print to get customers to edit business cards through a woocommerce set up. When the order is created a link gets appended to the order for the admin/shop manager to download the rendered pdf. The pdf is stored on the pitch print server, I believe via s3, and you need a signature/key to access the file….
Read more

How to make work WordPress wp_nav_menu with Jquery Ui Tabs

How to make work Jquery UI tabs in WordPress, I added how look’s my basic HTML doc and WordPress menu atm. Where do I need to include those ID’s ‘#tabs-1’ index.html <ul class=”menu-nav”> <li><a href=”#tabs-1″>Your Title</a></li> <li><a href=”#tabs-2″>About Us</a></li> <li><a href=”#tabs-3″>Another Title</a></li> </ul> Wp index.php file <ul class=”menu-nav”> <?php wp_nav_menu(); ?> </ul> Source: wordpress

Woocommerce "Add to cart" not working by Ajax

I’am working in a theme which uses a custom function to add an item to cart in the shop products page. The function add an element and returns me the current number of items added to the cart. The function: add_action(‘wp_ajax_nopriv_add_to_cart_item’, ‘add_to_cart_item’); add_action(‘wp_ajax_add_to_cart_item’, ‘add_to_cart_item’); function add_to_cart_item() { global $woocommerce; $prod_id = intval($_POST[‘prod_id’]); $variations=array(); $woocommerce->cart->add_to_cart( $prod_id , 1 , 0 ,…
Read more