Cannot Create a new Post [closed]

You can try each one of these: Go to WordPress Dashboard > Settings > Permalinks and simply hit Save Changes. Make sure there’s no index.html in your website’s root directory (i.e. the directory in which WordPress files are located). Create an .htaccess file in your wp-admin directory with the following contents: <IfModule mod_security.c> SecFilterEngine Off … Read more

How to hide a script ( an ad) from a specific post? [closed]

You can do something like this : // remove the script from the queue if were are on the post ID 11 add_action(‘wp_enqueue_scripts’, ‘remove_script_specific_post’); function remove_script_specific_post(){ if( 11==get_the_ID() ){ wp_dequeue_script(‘my_script_handle’); } } Provided that the script has been added with wp_enqueue_script

unable to select “fullwidth” on the POST (not page)

There is no Page attributes because it’s not a page and by default WordPress doesn’t have an attribute to select template for post. The page templates are coded in the theme that you are using.It seems that the theme has a template called Full Width defined as page template so you are able to select … Read more

Do anything on post_status change [duplicate]

Wrong search terms, already found it: function on_all_status_transitions( $new_status, $old_status, $post ) { if ( $new_status != $old_status ) { // A function to perform actions any time any post changes status. } } add_action( ‘transition_post_status’, ‘on_all_status_transitions’, 10, 3 ); https://codex.wordpress.org/Post_Status_Transitions

change page name on page list

You can change built in post type labels with the post_type_labels_{$post_type} filter: function wpd_change_page_labels( $labels ) { $labels->menu_name=”Specials”; $labels->name=”Specials”; $labels->singular_name=”Special”; return $labels; } add_filter( ‘post_type_labels_page’, ‘wpd_change_page_labels’ ); EDIT- Refer to register_post_type for a full list of labels, there are probably some others you’ll want to add to this.

Print specific content [closed]

You can create a shortcode that will print table into your page or page content. You can call shortcode using this syntax. e.g. [your-shortcode-name] see this link. https://codex.wordpress.org/Function_Reference/add_shortcode You can pass arguments and parameters also. add_shortcode(‘shortcode-name’,’my_shortcode_handler’); function my_shortcode_handler($arg) { return “<some table tags>”; }

Is there any point to using wp_unique_post_slug?

As the commenters have noticed wp_unique_post_slug is called from wp_insert_post to ensure there are no double slugs. It is also called from two other functions, which explains why it is a separate function and not incorporated in wp_insert_post. A little used feature is the possibility to apply filters present in wp_unique_post_slug. There are two of … Read more

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