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.
8 replies to this topic
#1
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.
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.
#2
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:
#3
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
Posted 16 November 2012 - 08:57 PM
Perhaps here: class.posts.php?
#5
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.
How exactly did you want to format this blog format? There may be easier, alternative ways.
#6
Posted 16 November 2012 - 09:23 PM
I had attached a mock on my first post. Here it is again.
#7
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 -
An introduction to hooks inside wordpress -
How to use the base theme -
How to use the customize plugin -
Some links for reference
A list of the Pagelines hooks -
An introduction to hooks inside wordpress -
How to use the base theme -
How to use the customize plugin -
#8
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:
To (placing title before thumb):
Can anyone tell me how to properly override the following code? Line 322 of classes.posts.php
From:
To (placing title before thumb):
#9
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.
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.












