Jump to content


This topic is now archived and is closed to further replies.


Pull Posts/pages from Different Pages on to one page

Recommended Posts


Enjoying finding my way around single bits.  Super useful for changing up the default DMS layout. 


Is there a way to have Single Bits pull a posts/page information other than the one it's on?  I'd like to use it in a way where in one section I pull one portfolio post and then down on the same page pull another posts.  Icing on the cake would be to be able to pull from a category and randomize what's displayed.



Share this post

Link to post
Share on other sites

jmad The Single Bits section basically works with post content, however when creating the template you can use other sections, like Masonic and Flipper, allows you to pull in posts from a different category or post type. Also, you can use the PL Nextbox Section (free if you are a Club Member) to put shortcodes or if you are a bit more advanced PHP code.


There are different sections on the PageLines Store too that display posts, like my Filtering or Hover News.


If you are looking to have control over what posts are pulled in to the single post, look at Advanced Custom Fields Relationship Field which you can add to your post type and pull from another or even the same post type. Then use the PL Nextbox to use either the shortcode for the field (not sure how good it works, or the PHP Code.


Hope that helps.



Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post

Link to post
Share on other sites

Thanks for the information.  I'd been considering the PL Nextbox route.  


SingleBits is great but I was thinking how convenient it would be if you could set the FullWidth part of SingleBits to pull a specific page, post or category.


Thanks again for the information.   

Share this post

Link to post
Share on other sites

  • Similar Content

    • JudithKlinger
      By JudithKlinger+
      Help! I urgently need to remove the "This post was last edited..." that is now appearing anywhere that I've used Single Bits for a post. 
      James Giroux kindly provided this reply...but it does nothing. HELP! 
      This is from the Single Bits section by Ellen.  The code to add to the functions.php to remove this is:
      if(class_exists('elsueSingleBitsPlugin')) { $instance = elsueSingleBitsPlugin::this(); remove_filter('the_content', array($instance , 'add_mod_hatom_data'), 5 ); }
    • JudithKlinger
      By JudithKlinger+
      I'm stuck in a loop. We're developing a magazine type format and having been using Single Bits Single Post as the template..fine, no problem. Looks great! 
      But, some of the articles now have either a lot of media, or multi media, so we wanted to set up another template for these posts. But, if I change the media content on one post, it 
      changes it on the others. I've tried setting up Custom Posts, but that removes the post from the wp post "categories" and then deletes the post from something like HoverNews that pulls by category. 
      So how do I have the media change for each post? I've tried setting up a separate template for each of these particular, media specific posts...but that doesn't help either because they are posts, not pages. 
      Can PM you the link as the site is not live yet. Thanks!!
    • stoltz
      By stoltz+
      I want to change the text color of the post title in a specific post - How do I do that through CSS?
      I've downloaded a plugin which allows me to add custom CSS in specific posts, but I do not seem to get the selectors right.
      I am using the light-bg class on the single-bit container as well, which then includes a single-bit with the post title.
    • flourishdesignstudio
      By flourishdesignstudio+
      I am working on a website right now that uses custom tab colors that also match the background color of the tab content area. However, when a tab is open the tab bg color appear slightly different than the bg of the content area. I have double checked all my setting and can't seem to find a way to override this. 
      Would a link be helpful so you can see what I am referring to? I will include a screenshot in case that works...
      Thank you so much for all your help!