Home Blog

Get full list of posts/pages for one author

0

The following short code will help you get all posts from a current logged user.

$args = array(
            'post_type' => 'post', // this can be changed to any(for all), page(for pages) or other custom post type
            'posts_per_page' => '-1',
            'post_status' => 'publish', //this status will take only published posts. You can use any status
            'author'=>get_current_user_id()
        );
$my_query = new WP_Query($args);

If you wish to get a specific user posts just use the following code:

$args = array(
            'post_type' => 'post', // this can be changed to any(for all), page(for pages) or other custom post type
            'posts_per_page' => '-1',
            'post_status' => 'publish', //this status will take only published posts. You can use any status
            'author'=>[id of the user] // replace [id of the user] with the ID number of user
        );
$my_query = new WP_Query($args);

You can also use the Author name to get all users posts. This is the code for this:

$args = array(
            'post_type' => 'post', // this can be changed to any(for all), page(for pages) or other custom post type
            'posts_per_page' => '-1',
            'post_status' => 'publish', //this status will take only published posts. You can use any status
            'author_name'=>'[name of the user]' // replace [name of the user] with the username of user
        );
$my_query = new WP_Query($args);

How to restore a user on VestaCP

0
Data storage hard disk drive uncovered with assembly case cover part and screwdrivers, Computer hardware repair concepts.

After you have backup up your users on VestaCP you can easily restore them. Please note if you have backedup your user with cPanel or other system this tutorial will not work.

First of all please copy the archives on path /backup/.

After that the following command will help you to restore a user in VestaCP is:

v-restore-user user nameofarchive.tar

So lets say we want to restore user mmm with archive name mmm.2019-06-07_10-05-58.tar. The command will look like this:

v-restore-user mmm mmm.2019-06-07_10-05-58.tar

Please note: from what i have seen you need to use the same username as on the old server. The system will give you an error if you wish to change the username into something new. If i exported user mmm i need to import the same user mmm. It will not allow me to change the username as something else.

How to backup all users on VestaCP

0
External Hard disk drive connect to laptop

I use VestaCp for lots of my servers on DigitalOcean. I will make a new posts that will explain what commands i use on this system.

When you wish to transfer a website account or you just wish to backup your sites i use the following command:

v-backup-users

This command will create a backup for all users on VestaCp and will create the archive on folder /backup/ on the server(if you did not add a custom backup path).

How to check what devices wakes up the computer from sleep mode

0
laptop with man hand, his finger is pushing the space bar

I usually do not power off my computer but put it in sleep mode or hibernate.

The best thing about this is you have all your software opend and you do not need to stay much time to see what you were doing before you stopped working.

But on my workstation i just reinstalled my Windows and in the morning i always find my PC already on. What can you do to fix this issue?

Simple: you just need to run the bellow command:

powercfg -devicequery wake_armed

Anfter you have run this command you will see a list of devices that wakes up your PC.

You need then to go to Device manager, find those devices and unselect the option from Power Management: Allow this device to wake the computer.

After you have finished the list you can run again the command to see if the result is NONE. If that is the case then you are done:)

How to download your email data from Microsoft account

0

I am going to show you How to download your email data from outlook.com.

If you wish to download your Microsoft emails you need to login to outlook.com

Here go to top menu on Settings Icons and on the bottom of the popup go to View All Outlook settings

Here select General and the Privacy and data.

Press on export mailbox. Please note that this action can take up to 4 days to be finished. You will receive a notification when the archive is ready

How to create a document on Google Docs with option to Suggest an Edit

0

I am going to show you How to setup different How to create a document on Google Docs with option to Suggest an Edit

If you wish to allow other users to suggest edits but not to have the option to change file just press Share on the top.

Here select Anyone with the link can comment. Now users have the possibility to make comments and suggest edits.

Lets test this.

You see how i can edit the page and make suggestions. is quite easy and effective.

How to setup different Headers on first page in Google Docs

0

I am going to show you How to setup different Headers on first page in Google Docs

By standard Google Docs allows you to setup headers quite easy. Just double click the top part and you will activate the headers.

Go to first page and double click the header.

Here just click on Different first page and you will have a different header for the first page. Is that easy.

How to Change the Keyboard on Your Android Phone

0

I am going to show you How to Change the Keyboard on Your Android Phone.

Some of the keyboard on Android have already a build in a key for this action. when you tap it will allow you to change the keyboard. I have here a globe key that if i press will allow me to select the keyboard.

Some keyboards like this do not have this. So how can you change it?

Go to Settings->General management -> Language and input

Here you will find the option for Default keyboard.. this will allow you to change it back how you wish.

How to Turn On and Off Your Phone’s Flashlight

0

I am going to show you How to Turn On and Off Your Phone’s Flashlight.

For this to work you will probably need a app that your phone already has or you can install one from Play Store

Just go and search for flashlight. If you find an app on your phone just enter into it and it should be real easy to turn on and off your flashlight.

If you do not find a app on your phone go to Play Store and search for flashlight. Install any app on this section. You can check what i installed on my video

After the install is done just open the app and see how it works. Usually it has a big button to turn on/off the flashlight, like this app has.

Best Editing and Filters apps for 2019

0

It is not time to continue the series for best apps for 2019. We are now going to talk to you about the next best apps to use in 2019.

For Best Editing and Filters apps for 2019 we have a good list of Android app:

Facetune – Ad Free

Every photo could use a touch up.Facetune provides easy-to-use, powerful tools (previously reserved only for the pros) to retouch and perfect every photo or selfie, making each one look like it came straight out of a high-fashion magazine.

Features:

  • PERFECT SMILES
  • BEAUTIFUL SKIN
  • BRIGHT EYES
  • HAIR SALON
  • FACE RESHAPE
  • VIVID MAKEUP
  • PHOTO ENHANCEMENTS
  • MAKE ART
  • SHOW OFF
  • EASY AND FUN

Hypocam

Hypocam is the ultimate App for black and white photography.

Feature

  • SHOOT — Be in control of your shoot
  • EDIT — Exclusively for black and white photography to provide you a unique experience.
  • BE INSPIRED — Always updated with the latest news and the best selection of photos about black and white photography.
  • SHARE — Post your unique photos to the most famous social network and tag #hypocam to be part of the best black and white community.

Prisma Photo Editor

Prisma Photo Editor is the BEST way to express your artist talent! Join one of the largest creative community who use Prisma Photo Editor as their #1 creative app!

Prisma transforms your photos into artworks using the styles of famous artists: Munk, Picasso as well as world famous ornaments and patterns. A unique combination of neural networks and artificial intelligence helps you turn memorable moments into timeless art.

Features:

  • More than 800 modern art filters
  • Stunning photo effects
  • Unique neural mechanism behind the scene