Customize Time Stamp

In this updated version of meks_time_ago(), the human readable date/time will be returned if the published date was less than the $threshold of days ago. Otherwise, the full date and dime will be returned. function meks_time_ago( $days_threshold = 3 ) { $published_date_timestamp = get_the_time( ‘U’ ); $current_date = new DateTime(); $published_date = new DateTime( “@$published_date_timestamp” … Read more

How to create button to direct to certain category

If you know the id of the category, this is how you can output a link to category. <a href=”<?php echo get_category_link( $idofcategory ); ?>” title=”Category Name”>Category Name</a> Check this : https://developer.wordpress.org/reference/functions/get_category_link/ Above page also shows how you can get the category link from category name, in case if you don’t know id of the … Read more

Portfolio + Blog: multisite or plugin?

Set your blog as Blog category and your portfolio as Portfolio category. You might be also interested in Custom Post types (which I think is the right way to do it): Run your Blog as a usual via Posts and set the Portfolio as Custom post type with its own categories, tags or what ever … Read more

A garbled copy of MY blog on this site? [closed]

Looks like they’re trying to content farm for SEO purposes without getting hit by duplicate content penalties. The first thing I would do would be to get in touch with their hosting, since the domain is registered to someone in Indonesia and calling would probably not get you the results you’re looking for. Talk to … Read more