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

“There doesn’t seem to be a wp-config.php file.” despite wp-config.php in root

Looks like you have 2 WordPress installations. One for the main site, other for the Blog. http://parlourdc.com/wp-content/plugins/akismet/readme.txt http://parlourdc.com/blog/wp-content/plugins/akismet/readme.txt If that’s not on purpose, you have a blog folder in your site root that should be renamed/deleted as it contains a blank WordPress. If you made a page on your main site titled Blog (and with … Read more

List all blog categories

Can I use the following code for my question. <?php $args = array(‘taxonomy’ => ‘blogcategory’); ?> <?php $tax_menu_items = get_categories( $args ); foreach ( $tax_menu_items as $tax_menu_item ):?> <a href=”https://wordpress.stackexchange.com/questions/143389/<?php echo get_term_link($tax_menu_item,$tax_menu_item->taxonomy); ?>”> <?php echo $tax_menu_item->name; ?> </a> <?php endforeach; ?> I found it from here Updated: I found the answer I was looking for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)