Tagged: 

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #589250

    Hello,
    Currently in the grid layout the info under each post picture is the category and the title of the post. Is there a way to modify this information? I review cafes and would like to add the score under each picture as well.

    Thanks,

    Greydon

    #590535

    Hi!

    Start installing this plugin and set a custom field for your Post type where you’ll set the score for each Post:
    http://www.advancedcustomfields.com/

    Regards,
    Josue

    #591021

    Hello,

    I have downloaded this plugin but I don’t think it is what I need. On one page I have about 15 posts in grid layout. Under the feature picture for each post is the category followed by the title of the post.

    I want to edit this information underneath the featured image for the post. So I would like to replace the category with a personalized score for each cafe that I review. I would like to keep the title though.

    Any thoughts? (http://snobeanery.com/toronto-cafes/)

    #591039

    Hi!

    The plugin i suggested allows you to create Custom Fields that would appear in each Post edit screen, so the idea was to create one for the “ratings” and then modifying the file that creates the Enfold grid to show the field in the front-end.

    If you find this too the difficult another thing you can do is set the Grid Layout like this – http://screencast.com/t/G8qd4H02sx, and then use the built-in Excerpt field to store the “ratings” text for each post.

    Best regards,
    Josue

    #591144

    Okay I understand now. How do I modify the file that creates the enfold grid to show the ratings field now?

    Greydon

    #591151

    Hi!

    Open /config-templatebuilder/avia-shortcodes/postslider.php and look for this line:

    $output .= "<div class='slide-content'>";
    

    Immediately before it place:

    $output .= "<div class='post-ratings'>".get_field("ratings")."</div>";
    

    Best regards,
    Josue

    #591160

    Hi Josue,

    I am having trouble with finding this file. Is it in the editor field on my wordpress site or my control panel?

    Is it possible to have you do this for me?

    Greydon

    #591170

    You’d need to look for that file via FTP.

    Also, i’d suggest you considering about switching to a child theme as this mod will be lost if you update the theme.

    #591200

    I will consider the child theme. I have found the line and added that ratings code right before the entry you said.

    I hasn’t seemed to have done anything though, the info under the post still looks the same as before and without any rating info.

    #591203

    Can you please create me a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #591215

    Please excuse the first private reply, the newest reply is the correct credentials.

    #591220

    Hmm, i’m not seeing it. Try submitting them again.

    #591223

    Try this.

    #591759

    Hi Josue,

    Did you get a chance to look into this?

    Regards,
    Greydon

    #592380

    Following this post, looking for the same implementation. Can’t see the custom field after modifying postslider.php

    Thanks in advance!

    #592457

    Hi!


    @greydongilmore
    i see you’re now using a different solution, let us know if you still need help.


    @dustingrof
    , modifying the file won’t make the custom field to appear, you’d need to install a plugin (read the topic from the beginning).

    Regards,
    Josue

    #595753

    Hi Josue,

    I have implemented a subtitle plugin and it seems to appear only when i display the posts in non-grid layout.

    Is there a way to display these subtitles in grid layout format? I am using the subtitles plugin by Professional Themes.

    Let me know,

    Greydon

    #596560

    Hi,

    That happens because the grid doesn’t use the_title so the plugin is unable to hook into it, try the following, open /config-templatebuilder/avia-shortcodes/postslider.php and look for line:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    Replace it by this:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".get_the_title()."</a></h3>";
    

    Regards,
    Josue

    #598306

    Hi,

    I am trying to accomplish the same thing.
    I’m using Advanced Custum Fields for portfolio items and I would like to display the fields in the magazine style.
    So i added the following line to magazine.php

    $output .= "<p><?php the_field('geslacht1'); ?></p>";
    and also
    $output .= "<div>".get_field("geslacht1")."</div>";

    just below

    $output .= "<{$titleTag} class='av-magazine-title entry-title' {$markupTitle}>{$title}</{$titleTag}>";

    But it does not output anything.
    What am i doing wrong?

    • This reply was modified 8 years, 9 months ago by mikehenze.
    #598340

    I am getting something now:

    I used the form field keys name instead of the name or label.
    It shows 1 field on the frontend now (the first) but not the rest:

    			$output .= 			"<div><b>Geslacht: </b>".get_field("field_56e6b34ce7803")."</div>";
    			$output .= 			"<div><b>Geboortedatum: </b>".get_field("field_56e7d6485cf39")."</div>";
    			$output .= 			"<div><b>Vader: </b>".get_field("field_56e7d6695cf3a")."</div>";
    			$output .= 			"<div><b>Moeders vader: </b>".get_field("field_56e7d6a0d463b")."</div>";
    			$output .= 			"<div><b>Opbrengst: </b>".get_field("field_56e7d6acd463c")."</div>";
    #598346

    It actually shows the placeholder value when using field key, so thats not the solution too..

    #598720

    Try passing $entry->ID as the second parameter in get_field:

    $output .= "<div>".get_field("geslacht1", $entry->ID)."</div>";
    
    #598860

    Thank you @josue.
    It works great!

    #598863

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.