React to WordPress - Page 2 of 2 - by kirillrocks

Using same slug for custom post type and custom taxonomy

It is fairly common that you, as a website manager, would like to use the same slug for custom post type as for custom taxonomy, but it is not a simple thing to do if you are not familiar with WordPress permalink structures.

I will explain, say your archive page is `www.domain.com/web-tutorials` – that is the page that will hold all of your posts under the `web-tutorials` custom post type. Now you want your web-tutorial(a singular post) URL to be www.domain.com/web-tutorials/taxonomy-category/post-name

web-tutorials Will be your custom post type slug.

taxonomy-category Your taxonomy category.

post-name Will be your post name/title.

It is impossible to do so without coding customizations, and to my surprise, it is a simple one.

Read More

How to adjust post content before echoing it to the screen?

This one will be quick, I will show you how to adjust, change, nor filter the post’s content before echoing it to the screen.

It is fairly straightforward , you just need to use a WordPress filter for that

add_filter( 'the_content', 'filter_function_name' );

filter_function_name( $content ) {

    if ( is_single() ) {
        $content = str_replace( '<p>', '<p class="p-class">', $content );
    }

    return $content; // a must - return content in any case

}

Read More

What is React and where to learn it?

updated 13 April 2018

Complete Modern React and Redux Course by Stephen Grider

As a developer that loves learning new technologies and never stay behind, I decided to leave Angular(with the exit of Angular 5) and move to a different world. Faster, stronger, better and more advanced – the React world, and I have never looked back.

Before we even start talking about React, I want to share my 2 cents. As a developer, I have never enjoyed writing code as much as I enjoy doing it with React.

What is React?

In the simplest of words, React is a small Javascript library for creating intuitive web-application, fast and with as minimum code as possible.

Many are comparing Angular to React, which is incorrect. React is a small view library, as, on the other hand, Angular is a full-blown MV* framework.

The founder of React, Jordan Walke, Facebook software engineer, wanted to create a better solution for everyday problems of a front end developer. He wanted to do a much better, smarter, faster way of creating web-application, and yes – he succeeded.

Today, React is being developed by Facebook themselves, although it is a somewhat new technology, React already has million of front end developers supporting and using it in their own projects. The most common ones still would be Facebook Feed and Instagram.

Read More

You are a freelancer now! But how to get clients?

In this article I would like to share with you, the best ways on how to get clients, especially for a newbie. The things I will share, are from personal experience, and were the most effective for me. I can’t assure you that it will be the same for you. If you are a freelancer, never stop innovate on ways to get more exposure.

You did the greatest decision of your life, you left your high(hopefully) paying job for a better life, as a freelance developer. But right now, you are starting to realize that it is not a walk in the park. The days goes by, and before you realize a month passed and you got ZERO new clients. That can really mess up someone’s mood, and maybe even change your mind of being a freelancer.

But don’t fear! I got your back. I will share the top ways on how I started getting clients, from the smallest individuals to the gigantic corporations that I’m still working with today.

Read More