Jump to content


Photo
- - - - -

Custom Wp_Query


Best Answer jbrouwer , 06 December 2012 - 11:00 AM

Well. The above code does work (incl. pagination) with the GET method! Are there any security issues with using GET? I guess it is fine to use for a filter?

 

Thanks!

Go to the full post


  • This topic is locked This topic is locked
23 replies to this topic

#21 suzyo

suzyo

    Super Member

  • Members
  • 105 posts
  • Country: Country Flag

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
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

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
  • Country: Country Flag

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
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

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.


  • suzyo likes this