Jaydip Nimavat

2

votes
0

answer
18

views

BigCommerce CSS files does not load

I am using BigCommerce default theme Cornerstone, and created a CSS folder inside the assets, to load my custom CSS files. I have also added two CSS files there, and call it in template/layout/base.html file. Here is my code: {{{stylesheet '/assets/css/custom.css'}}} I also tried with CDN URL: It wa...
Jaydip Nimavat
1

votes
1

answer
48

views

Redirect particular post on custom url

I want to redirect any post that have particular meta, I have tried the following code: function my_call_back() { if( is_single() ) { global $post; $meta = get_post_meta( $post->ID, 'my_meta', true ); if( $meta == 'my_value' ) { wp_redirect( 'http://google.com' ); exit; } } } add_action( 'init', 'my...
Jaydip Nimavat
4

votes
4

answer
3.3k

views

WordPress slug without custom post type slug

I have register custom post type with following code: register_post_type( array( 'labels' => // array of labels, 'public' => true, 'publicly_queryable'=> true, 'show_ui' => false, 'map_meta_cap' => true, 'show_in_menu' => false, 'query_var' => true,...
Jaydip Nimavat