Jump to content
Sign in to follow this  
Brendan Tully

Custom wp_query in a specific page template

Recommended Posts

Brendan Tully+    3
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. 

 

Thanks!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

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

http://paste.pagelines.com/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Brendan Tully+    3
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
Danny    1,327
Danny

:D
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

    • 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. 
      https://www.geoinformation.com/geocode_library/10-10570-rsg-2016-003/
      Any idea?
      thanks 
      Binder1.pdf
    • 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+
      Hi,
      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? 
       
       

    • richardjacruz
      By richardjacruz+
      I'm building a website in a dev environment at http://162.144.182.17/~uescocra.
      I want to import a bunch of products, and then have the products have a different template than the default template. 
      I also want to change the default template for blog posts.
      Before I go making changes, can I do this where the post type of "products" has its own global template, and the same with blog posts?
      For instance, in a product I might want to have a widget for categories, similar products, etc., and in the blog I may want list of the latest posts, blog categories, link to an email sign-up landing page, etc.
      Thanks.
      Rich
    • Timothy
      By Timothy+
      Question! Does anyone know how to display a full post rather than the excerpt on the posts page? Normally I can replace 'the_excerpt' with 'the_content' on the page template, but i'm not finding that in the Framework templates...
      Thoughts?
×