Jump to content


Photo
- - - - -

Custom wp_query in a specific page template

loop template custom custom post type

Best Answer Brendan Tully , 11 April 2013 - 07:42 AM

nvm I ended up writing my own wp_query. Thanks for the reply! :)

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 Brendan Tully

Brendan Tully

    Member

  • Members

  • 13 posts
  • Country: Country Flag

Posted 11 April 2013 - 06:53 AM

Hello Everyone,

 

I would like to ask a question about wp_query for  a page template. 

So  this is the scenario:

 

I have a custom post type called "POSITIONS" . This is created using the magic field plugin .  

Please Login or Register to see this Hidden Content

Magic Field Plugin  -  

Please Login or Register to see this Hidden Content

 

In this page - 

Please Login or Register to see this Hidden Content

You can see at the bottom the five positions from the custom post type.  -

Please Login or Register to see this Hidden Content

 

This is shown through (see screencast for clear explanation)-

Please Login or Register to see this Hidden Content

Specific page template -

Please Login or Register to see this Hidden Content

 

 

So my question is how to make it show like 20 positions instead of 5. Clearly it is not doable via  options.

 

My idea is to code a custom wp_query in a specific page template.

I know how to code this in other themes but I browsed through the pagelines framework php files I am having a hard time.

 

Can anyone help me about this?

 

Replies much appreciated. 

 

Thanks!



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15163 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 11 April 2013 - 07:19 AM

Hi,

 

Can you add the code you're currently using to our paste service please so we can take a closer look.

Please Login or Register to see this Hidden Content



#3 Brendan Tully

Brendan Tully

    Member

  • Members

  • 13 posts
  • Country: Country Flag

Posted 11 April 2013 - 07:23 AM

Hi thanks for the immediate reply.

 

Update : I already found the code - sections - loop. 

 

this is the code.

Please Login or Register to see this Hidden Content

 

now the question. how to make it show instead of 5 to 20.

Please Login or Register to see this Hidden Content



#4 Brendan Tully

Brendan Tully

    Member

  • Members

  • 13 posts
  • Country: Country Flag

Posted 11 April 2013 - 07:42 AM   Best Answer

nvm I ended up writing my own wp_query. Thanks for the reply! :)



#5 Danny

Danny

    Is Awesome!

  • Moderators
  • 15163 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 11 April 2013 - 07:48 AM

:D
Ok, thanks for informing us the issue has been resolved, we appreciate it.







Also tagged with one or more of these keywords: loop, template, custom, custom post type