How to Create a Table in WordPress Admin Panel. Part 2.2.
How to Create a Table in WordPress Admin Panel. Part 2.2.

Good day, dear blog readers!
Let’s continue dissecting our table plugin “piece by piece.” In this part, we’ll take a look at our table class: “Plance_Table_Lessons2.”

When we open the class, the first method we’ll see is `prepare_items()`. It’s responsible for preparing data to be displayed. Calling this method is mandatory. Here’s the method code:

read more...

How to create a table in WordPress admin panel. Part 2.1.
How to create a table in WordPress admin panel. Part 2.1.

Hello, dear readers and guests of the blog. Yes, yes, yes. I'm lazy and haven’t written in a while. It’s easy to quit, but much harder to start writing again. But I really hope that this will change soon. I’ve gained quite a bit of interesting knowledge in WordPress — created a couple of plugins, completed several backend projects. As for frontend — still the same old story.

Now, to the point. In this article, we’ll extend the capabilities of our class — adding a search form, styles, checkboxes, and bulk actions on records. So, let’s get started.

You can find the first article in this series by following this link. Since some time has passed, I’ve changed the names of some classes and methods, but the purpose and tasks remain the same. I believe a bit of confusion will be good for you — it’ll make you think a little more carefully.

read more...

How to Prevent Comment Authors' Links from Being Indexed in WordPress (jQuery Version)
How to Prevent Comment Authors' Links from Being Indexed in WordPress (jQuery Version)

Hello! In this article, we’ll explore another method to hide comment author links to their websites. Previously, we looked at ways to do this using plain JavaScript and CSS. But this time, we’ll use the power of the jQuery framework.

As before, all code edits will be done with the "Twenty Twelve" theme installed.

These operations are fairly simple, and I don’t think you’ll have any major issues. But if you do — feel free to ask questions in the comments.

read more...

Localization of a custom website using WordPress
Localization of a custom website using WordPress

One of the latest projects I worked on for about a month was developing a social network. The site itself isn't very complex. But there was (and still is) one thing that bothers me — language support. In WordPress, this issue has long been well developed. And if you’re comfortable with using a computer and writing/editing text, translating a theme or plugin is not a big deal. But for a custom CMS, which I use in almost all of my projects, this becomes a problem — especially if language support wasn’t properly thought out from the start.

read more...

How and Where to Install Shortcode in WordPress
How and Where to Install Shortcode in WordPress

The task is quite simple and is frequently discussed on blogs dedicated to WordPress and making money online. It is published with the same purpose as the previous one — to reference it from other articles instead of duplicating the same text ten times.

According to best practices (or at least to keep things neat), shortcodes are usually created in the “functions.php” file of the active WordPress theme. For example, if your site is using the “twentytwelve” theme, open the file located at “/wp-content/themes/twentytwelve/functions.php”. Use search to find the line “add_shortcode”, i.e. where existing shortcodes are located. Once found, scroll below the last existing shortcode and insert yours (this is done purely for neatness). Alternatively, scroll to the end of the file and add your shortcode there.

read more...