• 0

Create a Second Category Page (thumbnail issue)


Question

Posted · Report post

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?

TIA

Rat

 

test-page.png

 

src-code.png

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

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%;}

 

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

 

~Rat

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for informing us the issue has been resolved.

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