Bulk WordPress Page/Post ID Grabber
Mass produce CSS for specific WordPress Posts and Pages
Built with: Python + Flask + jQuery
Mass produce CSS for specific WordPress Posts and Pages
Built with: Python + Flask + jQuery
I created this tool to save time when you need to apply CSS to specific posts and/or pages.
If you are not familiar with applying CSS to specific pages on WordPress, I have written a brief explanation below.
To use the Bulk WordPress Post/Page ID Grabber, simply add the URL’s of the pages whose ID’s you want to grab and the CSS you want to apply to those pages (optional). You can easily copy all of the URL’s that are opened in your browser’s tabs by using the Chrome extension Copy All Urls.
When you press the “Get Page/Post IDs” button, it will display the Page ID’s under the results column with the CSS. You can then press the “Copy Results” button to copy them to your clipboard.
To avoid overloading websites, I have limited simultaneous connections to each website to 10.
As this is not a CSS (Cascading Style Sheets) tutorial, I am going to assume that you know how to apply basic CSS and that you want to know how to apply it to a specific page/post on a WordPress site.
To apply CSS to a specific page you just need to add its ID in front of your CSS code as per the below example. This example would change the font color of this page to red.
.page-id-7478 p {
color: red;
}
To apply CSS to specific pages you will use .page-id-x (x being the ID) and for posts, you will use .postid-x.
To find the ID for each page you can…