wpfighter
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce to Custom post typeSuppose I have custom post type of say “shoes”. Now I want all the product single post fields(or metas) whatever you call them should be present in the backend of a single page of “shoes” custom post type.
By default “products” is the custom post type that handles all the features of woocommerce. I want the same to reproduce in custom post types.
Forum: Plugins
In reply to: [WooCommerce] Reproduce Woo commerce’s all product meta in custom post typesIn general, assigning particular meta to more than one post type is not difficult.
$cmb = new_cmb2_box( array( 'id' => 'singhal_metabox_2', 'title' => esc_html__( 'Select Layouts', 'text_domain' ), 'object_types' => array( 'post', 'page', 'themes' ), // Post type 'context' => 'normal', 'priority' => 'high', 'show_names' => true, // Show field names on the left // 'cmb_styles' => false, // false to disable the CMB stylesheet // 'closed' => true, // Keep the metabox closed by default ) );
But what if we want to reproduce all woocommerce metas in custom post types? Would that be possible?
- This reply was modified 6 years, 4 months ago by wpfighter.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Unable to regenerate imagesI am facing the same issue. what should I do?
Forum: Fixing WordPress
In reply to: Comments-Box not displaying on “Posts”I am glad I was able to offer help to any one. We are a global village, and we are here to help each other.
Forum: Plugins
In reply to: [Kirki Customizer Framework] Out put not workingConfiguration written like this:
`include_once( dirname( __FILE__ ) . ‘/kirki/kirki.php’ );Kirki::add_config( ‘my_theme’, array(
‘capability’ => ‘edit_theme_options’,
‘option_type’ => ‘theme_mod’,
) );function mytheme_kirki_configuration() {
return array( ‘url_path’ => get_stylesheet_directory_uri() . ‘/kirki/’ );
}
add_filter( ‘kirki/config’, ‘mytheme_kirki_configuration’ );’- This reply was modified 7 years, 2 months ago by wpfighter.
Forum: Fixing WordPress
In reply to: Comments-Box not displaying on “Posts”There Is an option like this →
Automatically close comments on articles older than 28 days.
I hope that is not checked?
- This reply was modified 7 years, 2 months ago by wpfighter.
You are welcome. It s released like a plugin, but in practice, it is a framework. Let me know if you need any help with the Framework settings.
You have to put options.php file in your theme’s main folder. Like this → https://www.screencast.com/t/okoE7De3w
and when you are done with this then add this code in your theme’s functions.php →
if ( !function_exists( 'of_get_option' ) ) { function of_get_option($name, $default = false) { $optionsframework_settings = get_option('optionsframework'); // Gets the unique option id $option_name = $optionsframework_settings['id']; if ( get_option($option_name) ) { $options = get_option($option_name); } if ( isset($options[$name]) ) { return $options[$name]; } else { return $default; } } }
Let me know if that works or not?
Forum: Plugins
In reply to: [CMB2] shortcode not working and the relation to the_content()Oh Yes, I intended to post it to general support forum by mistake it got posted here. Please guide me If I can move it there in the shortcode category.
Forum: Plugins
In reply to: [CMB2] How to pickup the Optionfor example you have given how to use oembed meta in theme like this →
Text added in a oembed field will not automatically display the embed in your theme. To generate the embed in your theme, this is a method you could use:
$url = esc_url( get_post_meta( get_the_ID(), 'wiki_test_embed', 1 ) ); echo wp_oembed_get( $url );