Advanced Custom Fields Image Crop

There’s a plugin with an additional field typ with which you can force the user to crop the image to a specific size: https://github.com/andersthorborg/ACF-Image-Crop It’s not clear if it’s still under active development so you’d have to test it with newer ACF versions. There’s also one with aspect ratios instead of sizes if you need … Read more

Masking external links with internal link for member-only

You will want to add the hook function in your functions.php file: $user = wp_get_current_user(); if($user->exists) { add_filter(‘public_link_root’, function() { return ‘example.com’; } ); } Then whenever you are working with a URL in any of your template files, you can allow the URL to be modified by your customer filter public_link_root. The filter will … Read more

WP_Query and DES sort for Custom Taxonomy based upon a meta field?

Nothing. You shouldn’t need to set the post type. Your taxonomy archive is presumably already querying the correct post type. function customize_customtaxonomy_archive_display ( $query ) { if ( $query->is_tax( ‘country’ ) ) { $query->set( ‘meta_key’, ‘start_date’ ); $query->set( ‘orderby’, ‘meta_value_num’ ); $query->set( ‘order’, ‘ASC’ ); } } Note: $query->is_main_query() is redundant when checking $query->is_tax(), because … Read more

Remove lines in video

Nothing to do with WordPress, but the line is applied via CSS on .qt-caption::after In your scss file, _typography.scss look for: .qt-caption { padding: 0.33em 0 0.7em 0; margin: 0 0 0.5em 0; position: relative; &::after { display: block; position: absolute; width: 100%; height: 2px; content: ” “; background: rgba(150,150,150,0.3); bottom: 0; } } And … Read more

Show thumbnails 1-12 of category x on any given page

Have a look at the WP_Query codex, they have a range of parameters you can use, and example functions. First setup your arguments, I have included 2 ways of doing this, the first being the easiest using the built in category parameters. $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 12, ‘category_name’ … Read more

how to restore wordpress backup(.rar) manually?

As MikeNGarrett said, you need to look inside your rar file to see what’s inside. This is basic procedure. Go to your public folder (htdocs for xampp), and create a directory(yourprojectfolder). Extract your rar file inside it. if you can see folders like wp-content, wp-includes and files like wp.config.php etc.. then you’ve done first part. … Read more

Extra Text in Home URL

Thanks for the above responses. I did not have opencart installed, and those were the only similar answers I could find. I ended up just installing the “Redirection” plugin which seemed to solve my problem. I added a simple redirect which redirected the target URL back to the homepage. I could have eventually found a … Read more

WordPress Post url encoding problem

The only way I know to change the URL in the browser’s address bar is to provide the actual URL in the HREF link that you want to see displayed. If there were a way to change the URL in the browser’s address bar, then that would open up many cans of worms for hackers … Read more