How to delete unnecessary custom post types in the UI

Currently there is no way on the backend (UI) for unregistering a post type, the process however is quite simple. Andrew Nacin provided some code over on https://core.trac.wordpress.org/ticket/14761 You can easily create a plugin with this function and have the CPT unregister. if ( ! function_exists( ‘unregister_post_type’ ) ) : function unregister_post_type( $post_type ) { … Read more

Post’s arent displaying

I just recreated your setup. I created a post-type called “supplier-showcase”. I created a taxonomy called “supplier-category”, and added a term with the slug “supplier-cakes”. Added some posts with and without the term “supplier-cakes”. Than I copied your code, inserted it in a simple page template, fixed the things I already mentioned, and reindented the … Read more

How to restore deleted wordpress site?

You’d need to install a blank WordPress install somewhere…locally or on the domain you want to transfer it to and check the “Discourage search engines” option. Then use WordPress importer to import the content, I assume you only exported all posts and pages? You’ll need to manually set the rest such as Site Name and … Read more

how can i change the html and the css of my word press theme that I bought?

First of all, it depends on what theme you have. Many premium themes provide an option for users to enter their custom CSS. It that is the case you can add your styles there. If not, follow the link to create a child theme – http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/ You can add your custom style in child theme’s … Read more

Need help saving input fields for Security Deposit plugin in WC Vendors page

You will need to add a custom field to the product-edit form, saving is done automatically if you correctly format your input id. WCVendors_Pro_Form_Helper::input( array( ‘type’ => ‘checkbox’, ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product__wc_security_deposits_enable’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘Enable this to … Read more

How to create a shortcode with HTML code in it and custom parameters/

As per the shortcode documentation, your shortcode callback recieves any parameters set by the user in a $atts variable. You can combine them with any default values you might have with shortcode_atts(). function newsletter( $atts ) { $atts = shortcode_atts( array( ‘url’ => ‘https://domain.com/newsletter/z2o7q6’, // change default value as needed ‘headline’ => ‘Newsletter Box Headline’, … Read more

Custom CSS File wont work on second Page

Sounds like your are not creating a proper WordPress template when you copy your index.php. Here you can find the list of standard template files: https://codex.wordpress.org/Theme_Development#id=%22Template_Files_List%22 And here you can learn how to create a custom template: https://codex.wordpress.org/Theme_Development#Custom_Page_Templates My guess is you need to add the following to the top of your index copy. Then … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)