get the custom post type title/name
You can use post_type_archive_title( $prefix = ”, $display = true ): <h1><?php post_type_archive_title() ?></h1>
You can use post_type_archive_title( $prefix = ”, $display = true ): <h1><?php post_type_archive_title() ?></h1>
Check this out, it may guide you in the direction you need: First: register_sidebar( array( ‘name’ => ‘Social Media button’, ‘id’ => ‘smb’, ‘before_widget’ => ‘<li>’, ‘after_widget’ => ‘</li>’, ) ); Second code: public function widget( $args, $instance ) { $output = $args[‘before_widget’]; $output .= ‘<a href=”‘ . $instance[‘url’] . ‘” class=”fa fa-‘ . $args[‘icon_title’] … Read more
‘mid_size’ => 2, controls how many numbers are shown each side of the current page. Currently you have it set to 2, which means you’ll get 5 numbers (current and 2 each side).. except on the first and last page where you get 2 on one side but there are no numbers to show on … Read more
You can hack this plugin code by changing ‘create_draft‘ option ‘no’ to ‘yes’ into plugin.php ‘get_default_import_options‘ method(Approx line no. 1013). I’m not tested this hack, try it your own risk.
Even though the recommendations have been updated to: To run WordPress we recommend your host supports: PHP version 5.6 or greater MySQL version 5.6 or greater OR MariaDB version 10.0 or greater the minimum requirements are not there yet: WordPress server requirements for Version 3.2+: PHP version 5.2.4 or greater MySQL version 5.0.15 or greater … Read more
The header-text option in the custom header allows you to switch off the header text, not to change its content. You can change the header text in the customizer. To show it in your front end you must must use echo get_bloginfo(‘name’) for the blog title and echo get_bloginfo(‘description’) for the tagline.
Your capability type is not valid. I would remove the code below if you can. WordPress auto generates the capability_type. “capability_type” => array( strtolower($s), strtolower($m) ), Check out the documentation for capability_type. https://codex.wordpress.org/Function_Reference/register_post_type
That is because you’re trying to define a property that is already defined, query a table with a wrong name, loop through an integer while you can use get_results instead of query method of $wpdb … I edited the code, hope it will help with your post duplication process: defined( ‘WP_USE_THEMES’ ) || define( ‘WP_USE_THEMES’, … Read more
You need to create separate tables for store sticky notes and save user sticky notes to that tables , in this way you can manage multiple sticky notes of user. i think this idea will help you.
Forget about connecting to your database while WordPress is ready and connected by default. Go after wpdb class for DB-specific tasks. First, call the global $wpdb variable which is the db class, and then use few methods to query your specific custom table. Not sure about the table structure? describe it first: global $wpdb; $table … Read more