Jump to content


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


Create a Second Category Page (thumbnail issue)

Recommended Posts


I have had a request to add a second category "template" to a WordPress (v3.7.1) website built on Pagelines Framework (v2.4.4). The only difference between the regular category template and the new is that the client requested no sidebar. The regular category template is in use, so I cannot remove sidebar normally.


Normally, I would copt the category.php file and create a new template that way, however, I am unaware of how to do that with Pagelines and from what I've read it is a daunting (if not impossible) task. In light of that, I opted to utilize the PHP Code for Posts Plugin in order to try to "mimic" the page lines delivery.


The code I have hobbled together looks like this: Paste Code Page



The issue I am running into is that I cannot get the post thumbnails to pull in. I have tried "the_post_thumbnail" and get_the_post_thumbnail" without success. The code executes, but the image source is mysteriously blank (see attachments)


Anyone have any ideas?







Share this post

Link to post
Share on other sites
James B

Hi there, I'm not sure regarding the php solution, you'd really need to speak to a developer but it's outside of our core support spectrum unfortunately.


Have you tried using a css solution on that page, using the ID of the columns and the class for the category to select it on that page only. Setting the column id with the sidebar in to display none, and the other one to width:100% to fill the space. Example below but you'll have to switch for your own column id's


 #plcolumnubfcbe {display:none;}

 #plcolumnubfc9b {width:100%;}


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post

Link to post
Share on other sites

That's a good idea. I hadn't come at it from a CSS angle. I actually just finished working on a solution using WP Category Post List Widget. I had forgotten I had used it before in a Pagelines build and it worked fantastically well.


Thanks for the reply. I may just give it a try just to see if it works as well.



Share this post

Link to post
Share on other sites

Thanks for informing us the issue has been resolved.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • Kedark
      By Kedark+
      Hello, I need help. Can and how to do it. I need to add more page appearance templates (page attributes). At the moment it's default and FRAMEWORK A, FRAMEWORK B etc. I need to add two more. How can I do this.
      Unfortunately, I did not find such a thread on the forum.
    • JP
      By JP+
      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?
    • dougalperman
      By dougalperman+
      Hi there,
      I'm a big fan of Pagelines, and have been for years.
      I'm trying to control the size of video embeds and having some difficulty. I see that I can just paste the Vimeo video URL into the post and an embed widget will automatically appear, which is great. But the embed box created is much taller that the video (689 x 1000 pixels) so the content sits in the middle of a tall black box, which looks awkward.
      I tried using the full iFrame embed code from Vimeo, which solved the disproportionate embed frame size (or aspect ratio) issue, but despite specifying the dimensions I want (690 x 388), the videos displayed on the post are sized at 300 x 150 pixels.
      I can't work out how to change either.
      I'm using the latest version of Pagelines Framework (Pro) with the Agency them.
      Any help or advice very much appreciated.
    • micstepl
      By micstepl+
      What is actually framework?
      - is ist that, what we used some years ago?
      - dös it replace DMS2?
      - can I use framework beside of DMS2?
      - how do they relate?
    • almanada
      By almanada+
      2 year DMS Framework Dev Member here:
      Nothing is saving on our websites, our Key is no longer registering, emails have gone unanswered.  The DMS theme seems to be overall malfunctioning.   I just want it to work like it worked last week again please. Also, based on our your website is looking, it's also falling apart. Please Advise ASAP!  Our clients have a much shorter temper with us, because we actually offer a way to contact us.  We have reinstalled the latest theme over and over.