Tag: wordpress

Visual Composer Get images from “attach_images”

In VC_MAP definition you have:

	"type"        => "attach_images",
	"heading"     => esc_html__( "Screenshots", "text-domain" ),
	"description" => esc_html__( "Add screenshots.", "text-domain" ),
	"param_name"  => "screenshots",
	"value"       => "",

In shortcode function you should have: Continue Reading

How to use wp_kses function

 $copyright = get_theme_mod('kotha_footer_copyright');

 $allowed_tags = array(
    'strong' => array(),
    'a' => array(
       'href' => array(),
       'title' => array()
 echo wp_kses( $copyright, $allowed_tags ); ?>

More info

SubFolder WordPress Permalink not working on Nginx?

Open your terminal and login your server.

sudo nano /etc/nginx/sites-available/example.com

add location

        location /subfolder/ {
                try_files $uri $uri/ /subfolder/index.php?$args;

and restart nginx

sudo service nginx restart

How to limit letter of WordPress post title

How to limit letter of WordPress post title? Just replace this code

<?php the_title(); ?>

with the following code.

<?php if (strlen($post->post_title) > 35) {
echo substr(the_title($before = '', $after = '', FALSE), 0, 35) . '...'; } else {
} ?>

This code is very helpful to limit WordPress post title.

Shaped – Personal Responsive WordPress Blog Theme

Shaped is a Personal Responsive WordPress Blog Theme and will certainly take your fashion blog to the higher level. We spent many times in researching to form the best layout and how a fashion blog should look like and we believe this WordPress blog theme will be the right choice for your blog.  Continue Reading