WordPress Plugin

WordPress Plugin

Aug 13, 2022

Hello, today I will share an experience with you.

The problem with WordPress is that when you want, for example, to display one or more specific items on your sidebar using a shortcode, the latter often asks you for the IDs of the items you want to display as parameters.

Or when you want, for example, that only on your homepage a pop-up appears but not on the other pages. In most cases the pop-up plugin asks you the ID of the page (or pages) where you want to display it in its setting. So in this example, you will need to get the ID of the home page.

How to get this ID?

There are several ways to get the ID of an article or a page. But it is too often difficult to do it.

One way is to copy snippets from here and there on the internet and paste it in functions.php of your theme, which requires a knowledge of code to do that.

Or, go to the list of articles and hover over the desired article for example and see the url displayed at the bottom left of the screen or more precisely the value of the "posts=" parameter in this url, and memorize it to be able to use it in a shortcode for example. Yes, this last method is simple, but you have to admit that it takes too much time on the other hand, in addition to the fact that you need a good memory if you have several IDs to retrieve.

Well, that's it! No more hassle! Save time! In one click, you can now retrieve all the IDs of an article or a page you want! Nice, isn't it?

Download and install here https://wordpress.org/plugins/add-id-column/ the plugin I developed and you'll see a new ID column in the list of articles or pages in your Back Office (as shown in the pictures here) in a simple way (no code knowledge is required) and fast

Enjoy it!

And thank you for your feedbacks!

Peace !

Enjoy this post?

Buy BenaWP a coffee

More from BenaWP