Jump to content
hugo2808

Change Category Posts Visualisation

Recommended Posts

hugo2808    1
hugo2808

Hi!

I use a plugin called Special Recent Posts to display my posts.

I created static pages and I display the posts with a shortcode [srp ... "category=7" ...] to have the result:

http://www.bienal-stp.org/noticias/

 

I have an archive menu by month for the category and when I click on one of the months I get all posts for the chosen month but with the default layout, and not the one I have with srp shortcode:

http://www.bienal-stp.org/2013/01/?cat=7

 

How can I alter this, having the posts list selected from archive widget link with srp layout?

 

Thanks

 

 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi Hugo,

 

You're viewing a static page (where you have Special Recent Posts), but also viewing a category page, where you do not have Special Recent Posts.

 

To make a category page with SRP, you need to create one as a static page, and include the shortcode there.

 

Another way might be to use the Content Box (download, free, from the Store), placed in the Content Area for the Category template and place the shortcode for SRP in there. I suspect though, that then you'd have both the postloop and SRP.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
hugo2808    1
hugo2808

Hi Rob,

Thanks for reply!

My problem is when I click in a month link from the archive widget I go straigth to default category page, it shows me all posts from the clicked month.

I would like to show this posts with SRP to seem like all site, and not have this category page different.

Thanks

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi, remember, you can add links in the sidebar by creating a unique menu and applying it using the Custom Menu option in Dashboard > Appearance > Widgets.

 

This is added work, but it will do the trick.

 

Unfortunately, SRP (a plugin I use and like very much) doesn't replace the post loop, and won't automatically paginate. Since it doesn't, using static pages is the best way, and on those pages, using a custom menu linking not to the archive, but to the pages would work best.

 

You can actually automate part of it by letting WP add new pages within the category to the menu automatically. Those will be static pages, not archives.

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • JP
      By JP+
      Hello,
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
      TIA
    • TallTree
      By TallTree+
      Hi,
      I am trying to remove the sidebar areas from my child theme (pagelines.com) from the post pages on a site:
      https://staging4.talltreemusicfestival.com/2017/grand-analog/
      The content is all the way to the left and very small, and the two sidebar areas are taking up a lot of space.
      What I'm after is content to the left, taking up most of the space, and then a small sidebar width on the right for widgets.
      I've tried selecting 'read width content' and 'full width content' in the edit screen for the WP content section, but it doesn't change.  If I try to move the sidebars (1 or 2) to the left, it doesn't change.
      If I select the pagelines framework theme (not child), the two sidebars go away when not selecting them in the edit screen..
      Can someone please tell me what I'm doing wrong?
      Thanks in advance.
      -Matt
       
    • Queue-it
      By Queue-it+
      I've created a new post category "Success stories" with Custom Post type UI. (in order to have a different layout for a different post category - blog post one layout, success stories another layout).
      New category "success stories" are "detached" from all the other posts, so they have a different layout, but the problem is that all of the success stories are also having the same exact content.
      So whenever I edit content (e.g. change body text) on one of success story posts, it also changes the content (body text) for all other Success story category posts. 
       
      Question: Is there a way to retain this separate category with it's own layout, and have a different content for each individual post? I'm using Pagelins templates. 
       Thanks in advance.
    • Queue-it
      By Queue-it+
      Hi,
      Is is possible to have different layouts for different Post categories? We have Blog posts, News posts and Case studies that all are posts, but is it possible to differentiate their layouts?
      So far when I change a post layout it affects all Post type pages. Could it be done somehow with creating a separate template? 
      Examples below
      https://queue-it.com/news/
      https://queue-it.com/blog/
       
    • Timothy
      By Timothy+
      I'm trying to find a way to display the full content of my posts on my posts page rather than the post excerpt. 
      I've tried using various plugins to create a custom excerpt with no success, so I'm guessing I'll need to make the change to the theme files. That being said I'm not able to find where I would make that change. In the past I've been able to replace <?php the_excerpt(); ?> with <?php the_content(); ?>, but I'm unable to locate this in the framework theme? Am I missing something here?
×