Jump to content

Archived

This topic is now archived and is closed to further replies.

werdnags

Custom Fields

Recommended Posts

werdnags

Can anyone guide me please?

I would like to learn how to achieve custom fields and going to give ACF plugin a try.  I have watched all the videos and read the documentation and all is good except I can find the template files for the pages and posts.  I believe I should be looking for the file single.php but what about posts?  Is the reason I can't find them because I am using a framework? Pagelines Framework?  How can I add my custom fields to the templates on Pagelines Framework?

Any guidance would be appreciated please.

Share this post


Link to post
Share on other sites

  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio+
      Hi,
      I am using PL5 as well as Advanced Custom Fields (AFC) to help add meta data to individual posts on our blog. However, where I am getting stuck is how to display the meta data on the actual public post page (frontend). For example, if we have posts that have a subject matter of plants then there are custom fields that the client fills out such as "Scientific Name", "Region", etc. I have used ACF before to display this meta data onto the loops section as well as in Revolution Slider or Essential Grid. However, I am not sure if there is a way to have this metadata display on the actual post page. Can you point me in the right direction? I am using a child theme so I wasn't sure if that meant I had to edit the functions.php file or if there was some other workaround that you knew of.
      Thanks so much!
    • PeriniNero
      By PeriniNero+
      We are building a Custom Post Type with Custom Fields and Custom Taxonomies.
      The only thing we dont understand is how to embed the Custom Fields including header tags and stuff in the Postloop (now we use a text-box below the postloop section but also SEO wise this is not best pratice).
      So we thought to copy the dms Postloop section to our child theme and rename this, to add an extra Postloop section to our theme. Is this the way?
      What exactly to adjust in those 3 files class.posts.php, section.php and style.less (at this point we know how to change the thumb LOL) and where to add the Custom Fields shortcodes?
      Thanks.
    • dawsonbarber
      By dawsonbarber+
      I found that I'm unable to create and save custom field groups with WP Types when Single Bits is installed and active.
       
      I'm not sure if it interferes with any other functionality, but there's definitely an issue with custom field groups.
       
      When I deactivate Single Bits, I'm able to create custom field groups.
       
      Custom fields appear to be fully functioning after creating them and reactivating Single Bits, so that's good.
    • CjrMotley
      By CjrMotley+
      Ok, I'm having problems with my custom post types showing on my front blog page along with my regular blog post, here is a link to the custom post type (sample post) ==> http://www.definitiondjs.com/musiclibrary/this-is-a-post-title-test/ ..... my custom fields doesn't show, Why?
       
      Also, when I edit the custom post, all the fields change to blank (the previous text that was in the field is somehow deleted), why?
       
      Wordpress: 4.0
      Pageline Frameworks: 2.4.5
      cpt plugin is: WCK, here is a link to the site ==> http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/
       
      I linked snapshots of the custom fields area, which doesnt show after publishing or after clicking edit this post:
       
      http://www.definitiondjs.com/wp-content/uploads/2014/09/01.png
      http://www.definitiondjs.com/wp-content/uploads/2014/09/02.png
      http://www.definitiondjs.com/wp-content/uploads/2014/09/03.png
       
      Summary, I would like my custom post to display on my front page, along with my blog post.
       
      Also I would like to have an option to hide post from showing on front page, but I would like for all posts to show in search, archieved and category, even if hidden from the front page.
       
      Thanks in advance!
    • circ2013
      By circ2013
      Hello Pagelines, I have spent the better part of the day trying to figure out how to set up custom fields within posts where the values can then be displayed on the front end within a PL-nextbox section.
       
      Here is what I am trying to do with no luck thus far.
       
      I have set up custom fields within posts.  For example, I am doing a site for builder.  We want custom fields within each post for Architect, Landscape architect, Interior Designer, Testimonial, Sustainability Features, Date Completed, and Location.  I have set it up so that each label is the key and what ever the client enters is the value.
       
      I would them like to display these fields on the post either within the_content of the post/loop or outside of the content in a PL-Nextbox.
       
      I have tried using the following within the pl-nextbox, but it keeps returning "Looks like your NextBox PHP resulted in an error :/"
      <?php $post->ID = 1446;?>
      <?php echo esc_html(get_post_meta($post->ID, 'project_type', true));?> <?php echo esc_html(get_post_meta($post->ID, 'architect', true));?>   Anyone have any suggestions on how I can pull this off?  Should I add this directly to the sections.php file with DMS>Sections>Postloop>sections.php?   I was hoping to create a left column that would display all the project details in an unordered list with some additional formatting...  Then have the project description (wp_Content/loop) display to the right in a new column, but if I have to create a special template and include my updates within the file, I can give that a shot.   Thanks, Scott  
       
×