Title: Recent posts and Popular posts
Last modified: August 31, 2016

---

# Recent posts and Popular posts

 *  Resolved [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/)
 * Hi thanks for the great theme. I’m trying to use this theme in my post section
   of my website using multiple themes plugin. When I delete the demo widgets and
   replace them with the actual Recent posts and Popular posts widgets it shows 
   up when it is active but then disappears when I activate my other theme. Can 
   you please help me with this?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923126)
 * I don’t understand your question, could you please elaborate? Also, please post
   your website’s url.
 *  Thread Starter [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923160)
 * Hi, thank you for your quick response. It is a little bit complicated. I already
   had a website and a blog that was connected to it. I like the way the website
   looks so I didn’t want to change it, so I downloaded a plug-in called multiple
   themes which allows me to put a different theme for my blog posts. I liked the
   look of your theme and so I downloaded it and activated it via multiple themes
   to work just on my blog.
    When I try to activate the recent posts and popular
   posts widgets on the right hand side they show up in the review but when it is
   live they are not there. I know it is probably confusing it with the multiple
   themes, but I was just wondering if you could provide some answer. My website
   is manifestyourdesires.com. You Can Click on the Law of Attraction Blog tab to
   go to the blog site where your theme is working. Thanks in advance. Cheers Chris
 *  Thread Starter [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923189)
 * Hi I think it might be multiple themes which is causing the problem as I tried
   and tried again to get the widgets to show. But the demo for recent posts and
   popular posts shows up so I was wondering if there was a way to remove the wording“
   Demo” and “Disable these demo widgets etc.” thank you I would appreciate any 
   help with this that you can give me. Cheers Chris
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923194)
 * It’s not really normal to use two themes on the same WP install, I think it might
   confuse some of the sidebars. Try adding your widgets from `WP Administration
   Panel > Appearance > Widgets` and use these two widgetized areas: `Main Sidebar`
   and `Posts Sidebar`.
 * If you want to add widgets manually, with code, please write which widgets you
   want and where. I will give you the code and where to place it.
 *  Thread Starter [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923221)
 * I know it is not normal to use two themes but I found a way with a plug-in called
   multiple themes, because I had spent a long time making the pages on my website
   look the way I wanted them to. But the blog posts category and posts didn’t look
   very good with that particular theme, then I found your theme and it looks great
   with my blog.
 * I am not an expert in creating webpages but I spent a lot of time trying to fix
   this on my own I tried your suggestion about the widgets but my theme only shows
   one sidebar and I can’t find a way to add the posts sidebar.
 * I really like the look of your demo widgets which seem to work on my site. I 
   like the social button but would only need to Facebook LinkedIn Twitter and Google
   plus, to show if that is possible. And I like the recent posts and top posts 
   widgets that also show in the demo.
 * I really appreciate your help with this and would love the code to add these 
   widgets to my blog.
 * Thanks in advance
    Chris
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923231)
 * You will need to open `sidebar.php` and `sidebar-posts.php`. Find and remove:
 *     ```
       else {
       			ac_return_inactive_widgets( 'sidebars' );
       		}
       ```
   
 * Add the following lines instead in both files:
 *     ```
       $ac_widgets_wrap_args = array(
       	'before_widget' => '',
       	'after_widget'  => '',
       	'before_title'  => '<h3 class="sidebar-heading">',
       	'after_title'   => '</h3>'
       );
   
       // Display social widget
       $ac_widget_rp_inst = array(
       	'title' => '',
       	'twitter' => 'YOUR TWITTER URL', 'twitter_anc' => __( 'Follow', 'justwrite' ),
       	'facebook' => 'YOUR FACEBOOK URL', 'facebook_anc' => __( 'Facebook', 'justwrite' ),
       	'google-plus' => 'YOUR G+ URL', 'google-plus_anc' => __( 'Google+', 'justwrite' ),
       	'linkedin' => 'YOUR LINKEDIN URL', 'linkedin_anc' => __( 'LinkedIn', 'justwrite' )
       );
       echo '<aside class="side-box clearfix widget ac-social-buttons-widget"><div class="sb-content clearfix">';
       	the_widget( 'AC_Social_Buttons_Widget', $ac_widget_rp_inst, $ac_widgets_wrap_args );
       echo '</div></aside><!-- END .sidebox .widget -->';
   
       // Display recent posts widget
       $ac_widget_rp_inst = array( 'title' => __( 'Recent Posts', 'justwrite' ), 'recent_posts_number' => 3, 'hide_recent_thumbs' => false );
       echo '<aside class="side-box clearfix widget ac_recent_posts_widget"><div class="sb-content clearfix">';
       	the_widget( 'AC_Recent_Posts_Widget', $ac_widget_rp_inst, $ac_widgets_wrap_args );
       echo '</div></aside><!-- END .sidebox .widget -->';
   
       // Display popular posts widget
       $ac_widget_rp_inst = array( 'title' => __( 'Popular Posts', 'justwrite' ), 'popular_posts_number' => 3, );
       echo '<aside class="side-box clearfix widget ac_popular_posts_widget"><div class="sb-content clearfix">';
       	the_widget( 'AC_Popular_Posts_Widget', $ac_widget_rp_inst, $ac_widgets_wrap_args );
       echo '</div></aside><!-- END .sidebox .widget -->';
       ```
   
 * Also, don’t forget to replace YOUR TWITTER URL with your social network urls.
 *  Thread Starter [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923260)
 * Hi Acosmin,
    Thank you so much for your help with this. I appreciate it very 
   much. It works beautifully. I would love to give you and your theme five stars,
   can you tell me how to do this? Cheers Chris
 *  Thread Starter [chrisrhea](https://wordpress.org/support/users/chrisrhea/)
 * (@chrisrhea)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923261)
 * No worries already done five stars to you. Thanks
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923264)
 * Thank you! I am marking this topic as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Recent posts and Popular posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/justwrite/2.0.3.6/screenshot.png)
 * JustWrite
 * [Support Threads](https://wordpress.org/support/theme/justwrite/)
 * [Active Topics](https://wordpress.org/support/theme/justwrite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/justwrite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/justwrite/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [acosmin](https://wordpress.org/support/users/acosmin/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-and-popular-posts/#post-6923264)
 * Status: resolved