Host a blog engine in my wordpress site

To run multiple blogs on single installation of WordPress you need to enable and configure multisite functionality, see Create a Network. While that will take care of basics, managing network of blogs controlled by users (rather than single admin/team) reliably and securely will likely require much more research and work.

How to reverse wp pages links?

I think you can achieve this by first reversing the sorting order (filter posts_orderby), and then reversing the selected posts (filter the_posts). By doing this double reverse you circumvent the problem that you have to know the number of posts your query will return before you execute the query. Keep in mind that WordPress (I … Read more

Separate blog on one WordPress

If the thing is that: though it’s a complete blog of an Institute, it’d be a simple one category blog with many posts under that category, then my solution is very simple: Idea: Create a category for each of the institute like: “Institute 1”, “Institute 2”, “Institute 3” etc. Then instruct your Institutes to blog … Read more

Building articles grid

Use WP_Query for getting the posts you want. Then you can loop through them and get their title, their featured image and their excerpt to be printed they way you want. Something like that: <?php $args = [ ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 9, ‘order’ => ‘DESC’, ‘orderby’ => ‘date’, ]; ?> … Read more

How to display on the blog page the posts corresponding to the selected language, using Polylang

you can add the lang parameter to your loop arguments like so $loop = new WP_Query( array ( ‘post_type’ => ‘post’, ‘lang’ => pll_current_language(‘slug’), //returns ‘en’ for example ‘posts_per_page’ => 10, ‘post_status’ => ‘publish’, ) ); However this is not the better practice because by doing that way we override the main query which is … Read more