Short website link for all post

The the easiest way to create shortlink is by using Jetpack Plugin developed by Automatic guys. This plugin comes with a lot of modules one of them is wp.me shortlink, which will give you the ability to create shortlink for any page/post/custom post in your site. it will be like http://wp.me/QhtyJu, but if you want … Read more

Get content from one WordPress website to another

If you have access to the old WordPress site go into the admin section then > Tools > Export. Where it says Choose what to export check All content, and click Download Export file. In the new WordPress site go into the admin section > Tools > Import > choose WordPress form the list (it … Read more

Can I have a specific template for products even if they are standard posts and not CPT?

Filter template_include, check if the current post is a product and load the product template. Example: add_filter( ‘template_include’, function( $template ) { if ( ! is_singular() or ! get_post_meta( get_the_ID(), ‘price’, true ) ) return $template; return locate_template( ‘product-single.php’ ); }); How exactly you determine if a post is a product is up to your … Read more

How to make 3 boxes like this screenshot has?

Your question is far too broad; you need to look at the CSS and HTML source and theme that site is based on to find out how that layout is done. Look at other free WP themes to find a similar layout. And learn how to use Firebug with Firefox, or use the developer tools … Read more

How to store the_post_thumbnail() value in a variable

With a tiny bit of research, I’m pretty sure you could have created this yourself: $featimage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ )[0]; $printable_url=”<img src=”” . $featimage . ‘”>’; echo $printable_url; Edit: Since PHP 5 is defunct, you can reference the first node in the array ([0]) directly. No need for intermediate storage of the full array.

What template file is used by default for posts?

You can create new template php file. //Template Name : Single Page Template get_header(); if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); the_permalink();//this is for the <a> bunch you are looking for endwhile; endif; get_footer(); Here , you can use “//” or “/** **/” to set the Template name , it … Read more