Jump to content


Photo
- - - - -

Blog Feed Format


  • Please log in to reply
8 replies to this topic

#1 gsibert

gsibert

    Member

  • Members

  • 12 posts
  • Country: Country Flag

Posted 16 November 2012 - 06:32 PM

Howdy.

I'm trying to determine the best way to format a blog feed or if it is even worth attempting. I know there are a number of options for formatting but none of them achieve the goal fully. So, I could really use a tip to get me going in the right direction. In a non-pagelines theme I would just code the php file for the layout I want. Pointers welcome and mock of what I'm trying to achieve attached.

Attached Files



#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 16 November 2012 - 06:45 PM

The best way would be to use the blog layout mode instead of magazine layout mode and Custom CSS to re-position the elements. You can also use the base theme to make changes to the blog post loop file:

Please Login or Register to see this Hidden Content



#3 gsibert

gsibert

    Member

  • Members

  • 12 posts
  • Country: Country Flag

Posted 16 November 2012 - 07:07 PM

And where might the post loop file be? I looked in sections and the content of section.php in the folder postloop is rather anemic.

#4 gsibert

gsibert

    Member

  • Members

  • 12 posts
  • Country: Country Flag

Posted 16 November 2012 - 08:57 PM

Perhaps here: class.posts.php?

#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 16 November 2012 - 09:19 PM

You'd not want to edit the core files as it would be overwritten with the next update.

How exactly did you want to format this blog format? There may be easier, alternative ways.

#6 gsibert

gsibert

    Member

  • Members

  • 12 posts
  • Country: Country Flag

Posted 16 November 2012 - 09:23 PM

I had attached a mock on my first post. Here it is again.

Please Login or Register to see this Hidden Content



#7 James B

James B

    Advocate

  • Moderators
  • 4985 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 16 November 2012 - 09:42 PM

You'd need to use a hook/filter in order to edit the layout in the way you want. If you have/know the php you want to include then you'll be able to put this into practice using the base theme or the customize plugin.

Some links for reference

A list of the Pagelines hooks -

Please Login or Register to see this Hidden Content


An introduction to hooks inside wordpress -

Please Login or Register to see this Hidden Content


How to use the base theme -

Please Login or Register to see this Hidden Content


How to use the customize plugin -

Please Login or Register to see this Hidden Content


  • gsibert likes this

#8 gsibert

gsibert

    Member

  • Members

  • 12 posts
  • Country: Country Flag

Posted 19 November 2012 - 08:39 PM

OK, I've dug, hacked and am almost there... Soon to be an apprentice hooker/filterer...

Can anyone tell me how to properly override the following code? Line 322 of classes.posts.php

From:

Please Login or Register to see this Hidden Content


To (placing title before thumb):

Please Login or Register to see this Hidden Content



#9 James B

James B

    Advocate

  • Moderators
  • 4985 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 20 November 2012 - 05:01 AM

Hi there, there's no developer online at the moment for me to check this for you, but the code looks the same you've just swapped the order of how its being called.

I would say copy your code in the functions php and paste it into a blank text file/email so you have a copy.

Try the new code, if it throws an error jump back into your hosting account via ftp and paste it back to how it was using the content of the text file. Let us know if that works or if you need further assistance.