• 0
Sign in to follow this  
Followers 0

Noob Code question

Question

Posted · Report post

Ok, in the Customizations add on, I am trying to add some code. I need to be able to pull info from custom post fields info the actual post. I am using gravity forms to create the information and everything seems great... the information appears everywhere it needs to, i just need it pulled into the post. Im working off the assumption this is what I need. Am i wrong? What am I missing?

add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() ) $query->set( 'post_type', array( 'username', 'country', 'website1', 'website2', 'website3', 'website4', 'website5', 'framework', 'language', 'platform', 'specialties', 'whydoyouwant', 'whatdoyoubring', 'whydont', 'anythingelse', ) ); return $query; }
Thanks :)

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Disregard... I found this post [url]http://www.pagelines.com/forum/discussion/16605/show-custom-fields-pagelines-2.0/p1[/url] that resolved it. It also works on Platform Pro... Thanks :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

One more quick question on this... I have a checkbox form that can return up to 9 results to a single custom field and having a challenge showing them all. It posts the first selection, but not all of them. Is there anything in the code here ([url]http://www.pagelines.com/forum/discussion/16605/show-custom-fields-pagelines-2.0/p1[/url] that needs to be modified to allow this to happen? Thanks again :)

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  
Followers 0