• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Show the ID of your articles in a new column

By Abhishek Ghosh March 13, 2011 3:58 pm Updated on October 17, 2014

Show the ID of your articles in a new column

Advertisement

This snippet is to be pasted into the file “functions.php” your theme WordPress . It allows you to add a new column in the overview page of your blog articles. This column simply displays the unique identifier of your item (Article ID). The ability to hide the column is also available via the tab “Options” screen.

 

GKID function ($ column) {$ Column ['ID'] = 'identifier';return $ column;}add_filter ('manage_posts_columns', 'GKID', 5, 2);add_filter ('manage_pages_columns', 'GKID', 5, 2);GKID function ($ column, $ ID) {if ($ column == 'login') {echo '<strong>'. $ ID. '</ strong>';}}add_action ('manage_posts_custom_column', 'GKID', 5, 2);add_action ('manage_pages_custom_column', 'GKID', 5, 2);  

 

Note that once the column has been added, you may see it is far too broad or far away.We can easily change the width. To do this, you have to just paste the following code in the file “functions.php” of your theme. The size can obviously be changed.

 

GkAdminH function () {echo "Login <style> # {width: 100px;} </ style>";}add_action ('admin_head', 'GkAdminH');

 

Signature

This Article Has Been Shared 173 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Show the ID of your articles in a new column

  • How to change the smilies / emotions in WordPress

    WordPress offers a variety of native smilies automatically generated when you enter the shortcut to which they refer.You can however, change to your own custom simile or emoticons.

  • Change the password of a user via phpMyAdmin WordPress

    The MySQL database for WordPress stores all user passwords in the table wp_users. With phpMyAdmin, learn to generate new passwords for each user account in your WordPress installation.

  • Optimize WordPress by compressing data through .Htaccess

    We propose a simple procedure yet very effective to make your site running fast by adding a code snipplet to .htaccess file.

  • KML Google Maps and HTML Google Maps

    KML Google Maps and HTML Google Maps are two format ways to add Google Maps in WordPress Posts. Let us see the advantages and disadvantages of these formats.

  • KML Google Maps WordPress Plugins and Manual Ways to Insert

    KML Google Maps WordPress Plugins are easy way to integrate KML Google Maps in WordPress blog and also we have added the manual ways to Insert using PHP script.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Show the ID of your articles in a new column," in The Customize Windows, March 13, 2011, July 4, 2022, https://thecustomizewindows.com/2011/03/show-the-id-of-your-articles-in-a-new-column/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy