How to Remove / Hide Page or Post Title in WordPress

Title of wordpress post can be removed using the_title filter for a category, single post or page or all pages / posts. Following code will remove title of posts in wordpress category. Place the code to the end of functions.php file of active theme of your website.


function remove_title_of_category( $title, $id = null ) {
if( is_single() ) {  /* this will remove title of post/page on single page and not from list of posts */
if ( in_category('wordpress', $id ) ) {
return false;
}
}
return $title;
}
add_filter( 'the_title', 'remove_title_of_category', 10, 2 );

Hide / Remove post title using CSS

We can hide post title using display property of element which contains the title of page.

  1.  Visit a page / post using Chrome or you favorite web browser.
  2. Right Click on its heading / title text.
  3. Click on inspect.
  4. You will see HTML source of title / heading element.
  5. There will be an attribute class for this element. Note down its value e.g. entry-title
  6. Login into admin dashboard of you site.
  7. Go to Appearance->Theme Editor.
  8. Select the file style.css from files list given on right side bar
  9. Go to end of style.css and place following code at the end:


.entry-title{
display:none !important;
}

How to Increase the Maximum File Upload Size in WordPress

WordPress provides a filter upload_size_limit  to  set the limit of  maximum upload size.

A simple way to set maximum upload size for frondend as well as admin dashbaord  just add following code to the end of file functions.php in active wordpress theme.

function filter_site_upload_size_limit( $size ) {

// Set the upload size limit to 20 MB for users lacking the ‘manage_options’ capability.

$size = 1024 *1024*20;

return $size;

}
add_filter( ‘upload_size_limit’, ‘filter_site_upload_size_limit’, 20 );

In case you need to increase file upload size for admin side only use following code:

function filter_site_upload_size_limit( $size ) {

// Set the upload size limit to 20 MB for users lacking the ‘manage_options’ capability.

$size = 1024 *1024*20;

return $size;

}

function set_max_file_upload_size_for_admin()

{

add_filter( ‘upload_size_limit’, ‘filter_site_upload_size_limit’, 20 );

}

add_action(“admin_init”, “set_max_file_upload_size_for_admin”);

 

Find the version of running instance of wordpress

Version of installed wordpress can be found by number of ways. We explain here one by one

WordPress files

Version.php

If you have cpanel of FTP access  then locate the file wp-includes/version.php and you will find following:

/**

* The WordPress version string

*

* @global string $wp_version

*/

$wp_version = ‘4.7.3’;  // current version of installed wordpress.

about.php

Login using username and password of administrator and type following in browser address bar:

https://<you-domain.com>/wp-admin/about.php

and it will display detail of currently installed wordpress including version.

Readme.html File

Generally readme.html file is publically accessible on websites and can be accessed by typing http://datumsol.com /readme.html.

By inspecting meta tag:

 

If admin of site has not edited a meta tag with version of wordpresss exists in source of page. You can view the meta tag by right clicking on page and view page source and search following meta tag:

<meta name=”generator” content=”WordPress 4.7.3″ />

Feed Link

Type  http://<youdomain.com>/feed/  and you will get an xml document which will include following tag:

<generator>https://wordpress.org/?v=4.7.3</generator>