Entries by

Creating WordPress Pagination Without Plugins

Creating pagination in WordPress without a plugin involves a few steps. We'll go through these steps in order. CSS Codes: Add the following CSS codes to the style.css file. You can customize them as you like. /* Pagination */ .wp_paging { margin: 0 0 20px; padding: 0; } .wp_paging ul { margin: 0; padding: 0; list-style: none; } .wp_paging ul li { margin: 0; padding: 0; display: […]

Go to Linux Server Server Setup

Setting up a Git server is quite useful and convenient. You can set up a dedicated Git server on your VPS, VPS, or dedicated servers. I'm assuming you've installed Git on your Linux server. First, we need to create a Git directory under the root directory. In the code below, I'll create a Git server named "example." This way, you can set up as many Git servers as you want. mkdir /git/example.git Then, navigate to the /git/example.git directory in your terminal and type the following command:

Installing Composer on Ubuntu

Note: This article applies to older versions. You can now install it simply by typing the command “sudo apt install composer” from the terminal. Local Composer Installation If you want to install it for just one project, type the following code into the terminal: curl -sS https://getcomposer.org/installer | php To run it, use the following code: php composer.phar Global Composer Installation If you want to install it on your entire computer and […]

Installing Node.js and NPM on Ubuntu

Installing Node.js and NPM on Ubuntu is a simple process. First, we need to install the Node.js package archive (PPA). It's an older version from Ubuntu's own package archive. For this, we need curl. If it's not already installed, enter the following command into the terminal: sudo apt-get update sudo apt-get install curl To add the PPA, enter the following command into the terminal: curl -sL https://deb.nodesource.com/setup | sudo bash – […]

PHP and JSON

To explain the relationship between PHP and Json and how Json is used in PHP, let's first examine what Json is. In programming, there's a need to exchange data between different platforms. For example, you might want to pull the latest posts from a social media platform and use them in your own project. For such operations, there needs to be sharing between platforms. Certain technologies have been developed for this sharing. For example, […]

PHP Lesson 4 – Operators

Binary This operator includes greater than and less than operations. It is used with the “<“, “<=”, “>”, “>=” operators. <?php var_dump(1 5); // Returns FALSE. Ternary This operator covers equality checking operations. The “==” operator checks whether values are equal. For example, for the string value 1 and the integer value 1 […]