Jump to content


Photo
- - - - -

Custom Wp_Query



This topic has been archived. This means that you cannot reply to this topic.
23 replies to this topic

#21 suzyo

suzyo

    Super Member

  • Members
  • 105 posts

Posted 22 January 2013 - 10:32 PM

hey all. following simon's directions, i have copied the postloop into my child theme. 

i did that, but i don't think i renamed it correctly.

 

i renamed it to section-2.php

 

the name of the section (at the folder level) is still postloop.

 

so: pagelines-template-theme > sections > postloop > section-2.php

 

this can't be right, can it?

 

and, if the php is named correctly, is it alright to leave the "postloop" folder with the name "postloop"?

 

thank you.



#22 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 22 January 2013 - 11:16 PM

Suzy,

 

You don't rename the section.php, but the folder containing it.

 

For example, inside a section folder called boxes there's a file called section.php. The same for every section.  But if you wanted to make a new boxes section, you'd copy the folder, rename it and call it something like boxes2, leaving the section.php inside perfectly intact.



#23 suzyo

suzyo

    Super Member

  • Members
  • 105 posts

Posted 23 January 2013 - 12:20 AM

so i had it EXACTLY backward. thank you! do i have to do anything else?



#24 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 23 January 2013 - 12:30 AM

I don't believe so.

 

But in future, if you see a topic is answered, don't add to it.  We generally ignore these because they're resolved. Open a new topic rather than tagging onto someone else's.  That way you get direct attention.