Okay
  Public Ticket #242204
Number of recent posts
Closed

Comments

  • Vincent started the conversation

    Hi, in the visual composer block with recent posts, is there  a way to influence the amount of recent posts? At the moment it displays four posts by default, but I would like it to display 3 posts. 

    Perhaps an extra input field for number of posts would be an option for the next version?

    Thanks

    Vincent

  •  8,839
    Tahir replied

    Hey Vincent!

    Thanks for the feedback. Ill add it to the wishlist. 

    Cheers


    ThemeNectar Support Team 

  • Buildarchviz replied

    +1 for this.

    I also would like to adjust the amount of the recent posts.

    Thanks

  •  1,070
    ThemeNectar replied
    Hey guys! For now this could be achieved from a small mod in the shortcode-processing.php file located in the nectar/tinymce directory. Inside that file edit this:
     $recentBlogPosts = array(
    	'showposts' => 4,
    
    And then use css to change the column width:
     
    .blog-recent .col {
        width: 32%!important;
    }
    .blog-recent > div:last-child {
      margin-right: 0!important;
    }
    
    Cheers
  • Vincent replied

    Works like a charm, thanks, I Am Nectar ;)

    Vincent

  • Buildarchviz replied

    perfect! Thank you!

    Tim

  •  8,839
    Tahir replied

    Added to the FAQ :) . 


    ThemeNectar Support Team 

  • Vincent replied

    Awesomeness all around :D