Using a .pdf file as a page in wordpress

just upload it through ftp or your domain hosting panel to your public_html (www) directory. It will be there as a link to www.example.com/myfile.pdf. The case may be that if you have wordpress and installed any security plugins you’ll have to allow the exception within that plugin as well.

Need to change link URL embedded in multiple posts to new link URL

Honestly, the best way to do this is to run some queries on the database using regex to search and replace, after the database has been backed up of course. Before learning more about SQL, I used this: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/, which should work for you in this situation. You download the file, upload it to your … Read more

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

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