Sanitize title only if only custom post type

you want to sanitize the title or the post_name (slug)? if you want to filter post_name you can check wp_unique_post_slug filter or you can use the wp_insert_post_data filter to filter all post data before insert or update in db. add_filter( “wp_unique_post_slug”, “url_sanitizer”, 10, 4 ); function url_sanitizer( $slug, $post_ID, $post_status, $post_type ) { // get … Read more

Can’t change website Title on wordpress

Please check your header.php file, and see if the <title> attribute isn’t fixed to the the Theme’s name. Also, if the All in One SEO Pack did modify it on the browser, other services (like facebook) cache the metadata from urls shared, and you would need to manually flush them. (Facebook for instance has this … Read more

Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?

Sorry, what you’re looking for is not an standard WordPress feature. It might interfere with the theme, which could be built to already include a link to the featured image. That would lead to invalid html. So you’ll have to build this yourself using the admin_post_thumbnail_html hook, which allows you to add fields to the … Read more

How to get the latest URL of my blog?

easy to do with get_posts // search the last post $posts = get_posts([ “posts_per_page” => 1, ]); foreach ($posts as $p) { // display the permalink echo esc_html(get_permalink($p)); } documentation of get_posts : https://codex.wordpress.org/Function_Reference/get_posts

change default RSS feed URL

I found my answer here : https://wordpress.stackexchange.com/a/214883/71314 function remove_feed( $feedname ) { global $wp_rewrite; if ( in_array( $feedname, $wp_rewrite->feeds ) ) { $wp_rewrite->feeds = array_diff( $wp_rewrite->feeds, array( $feedname ) ); } $hook = ‘do_feed_’ . $feedname; // Remove default function hook remove_all_actions( $hook ); add_action( $hook, $hook ); return $hook; } Usage: remove_feed( ‘feed’ );

How can i get rid of wp in front of URL

This is most likely because the wordpress installation on your FTP server is in the folder called /wp, if this is the case then you can just move the entire installation one folder up. If you have FTP login credentials then you can do this via FileZilla for example.

Made WordPress URL and site address URL the same

To fix your problem, you need either, phpMyAdmin or FTP access to your site. phpMyAdmin method Open your database and select wp_options table. Locate row with option_name = ‘siteurl’. Click on Edit. In option_value field enter http://user99.com. Click Go button to save it. Repeat this for option_name = ‘home’. Exit phpMyAdmin and go to http://user99.com/wp-admin/. … Read more