How to Create a Description for a WordPress Plugin
How to Create a Description for a WordPress Plugin

To avoid duplicating the same plugin description code for the 150th time, I decided to do it once and fully describe it in this article. In all other articles — I’ll just refer to this one.

So, in order for WordPress to recognize which plugin is located in the «/wp-content/plugins/» directory and be able to install it, you need to declare it properly (more precisely — write a header). To do this, at the very beginning of the main plugin file, create the following comment (providing your plugin details, of course):

read more...

Getting to Know Drupal
Getting to Know Drupal

Due to certain circumstances, I recently had to dive into studying the CMS Drupal. As I’ve already mentioned, it’s an excellent engine that I’m genuinely impressed with. It’s definitely not simple — the entry threshold is much higher than that of WP. However, it is incredibly flexible and functional. And if you spend a day or two with it, you can understand it just as well as WordPress. Though I must say, WordPress is significantly easier to master.

Once I’m on vacation, I’ll definitely spend more time studying it in depth and testing site development like catalogs, classifieds, and online stores. It’s said that all of this can be done without any coding — just using the built-in tools and a dozen third-party modules. Well, we’ll see about that.

read more...

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

In this article, we’ll continue developing our shortcode creation plugin and take a look at how to create tables in the WordPress admin panel. Of course, we could do without a table by defining an N-number of fields for our shortcodes. But having the ability to create an unlimited number of them will be an invaluable advantage for our plugin. Moreover, this gives us a good opportunity to deepen our programming skills within WP.

As usual, let’s start from the beginning — creating the plugin files (in future articles, this will not be repeated). Inside the “/wp-content/plugins/” directory, create a folder named “wp2fl-lessons-table-create-part1”, and inside it — the file “wp2fl-lessons-table-create-part1.php”.

read more...

Displaying advertisements via shortcodes
Displaying advertisements via shortcodes

Ah, I lied :). There won’t be a post about shortcodes and weather. The issue is, quite some time has passed since I wrote that shortcode, and the method for detecting cities on the weather site has changed. So now, it's unclear how to get the city ID and pass it to the shortcode to display the weather widget. And without that, as you understand, the development becomes meaningless.

I’m sure you’ve seen AdSense banners (or similar) on many WordPress blogs. In this post, I’ll explain how to do that — or at least how I would do it.

read more...

Output of the RSS feed of the second site via shortcodes in WordPress
Output of the RSS feed of the second site via shortcodes in WordPress

Greetings everyone! In this article, I’d like to show you how to use shortcodes to connect to an external site, fetch a list of latest posts via RSS, and display them in a nicely formatted block on your own site.

Honestly, the task might seem odd — why would I want links to other sites in my blog? But it’s just an example. You could also fetch exchange rates, weather forecasts for today or the week (which I’ll cover in the next post). For now, let’s stick to reading RSS and displaying the content.

read more...