Jump to content
Sign in to follow this  
Brendan Tully

Custom wp_query in a specific page template

Recommended Posts

Brendan Tully

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 .  http://screencast.com/t/cfoeIAsfa

Magic Field Plugin  -  http://magicfields.org/


In this page - http://www.amepl.com.au/employment/

You can see at the bottom the five positions from the custom post type.  - http://screencast.com/t/GTSoWHgJuva


This is shown through (see screencast for clear explanation)- http://screencast.com/t/3hYexrwnYh4

Specific page template - http://screencast.com/t/iIYYy91rPs



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. 



Share this post

Link to post
Share on other sites



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


Please search our forums, before posting!

Share this post

Link to post
Share on other sites
Brendan Tully

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

Share this post

Link to post
Share on other sites

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

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Dan Haddock
      By Dan Haddock
      Hi Pagelines team and wider community,
      I am looking to develop a single post page for my blog. I have read over an old article on the subject, however the link provided on achieving this goal was giving me security warnings. Is there any way I can get round this?
      Secondly, I have had a root around the .zip file provided on my sites backup, however was unable to locate any file in there with the name of Single.php. Does this file exist in the Pagelines theme?
      By the way, this is the unsafe article: http://support.pagelines.me/docs/customization/create-a-custom-page-template/ (Click at your peril).
    • art23130
      By art23130+
      I have uploaded a file shoing missing sections for Custom Post Type
      It is OK for categories and tags but not for a single post types. 
      This is the link. 
      Any idea?
    • Jared Smith
      By Jared Smith+
      I haven't figured out how to get the "Sync Loaded Item" option in templates menu of Platform 5 to stay checked. It doesn't give me an option to save settings when I select it, and when I select it then click off the editor, it unselects. Also if I select it before loading a template, it doesn't stay checked there either.  Whats going on?
    • Queue-it
      By Queue-it+
      I created a Pagelines template for a "Post type" post. Whenever creating a new post page it firstly display that template post and I have to manually change it in the scope from "All of type posts " to "Current page". 
      Is there a way to fix that?