Tagged: josue
-
AuthorPosts
-
February 25, 2016 at 4:58 pm #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
February 29, 2016 at 3:05 am #590535Hi!
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,
JosueFebruary 29, 2016 at 6:49 pm #591021Hello,
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/)
February 29, 2016 at 7:20 pm #591039Hi!
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,
JosueFebruary 29, 2016 at 10:05 pm #591144Okay I understand now. How do I modify the file that creates the enfold grid to show the ratings field now?
Greydon
February 29, 2016 at 10:20 pm #591151Hi!
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,
JosueFebruary 29, 2016 at 10:33 pm #591160Hi 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
February 29, 2016 at 10:46 pm #591170You’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.
February 29, 2016 at 11:10 pm #591200I 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.
February 29, 2016 at 11:13 pm #591203Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
JosueFebruary 29, 2016 at 11:19 pm #591215Please excuse the first private reply, the newest reply is the correct credentials.
February 29, 2016 at 11:24 pm #591220Hmm, i’m not seeing it. Try submitting them again.
February 29, 2016 at 11:27 pm #591223Try this.
March 1, 2016 at 8:16 pm #591759Hi Josue,
Did you get a chance to look into this?
Regards,
GreydonMarch 3, 2016 at 2:27 am #592380Following this post, looking for the same implementation. Can’t see the custom field after modifying postslider.php
Thanks in advance!
March 3, 2016 at 7:25 am #592457Hi!
@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,
JosueMarch 9, 2016 at 6:58 pm #595753Hi 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
March 10, 2016 at 9:03 pm #596560Hi,
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,
JosueMarch 15, 2016 at 11:21 am #598306Hi,
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, 8 months ago by mikehenze.
March 15, 2016 at 12:41 pm #598340I 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>";
March 15, 2016 at 1:01 pm #598346It actually shows the placeholder value when using field key, so thats not the solution too..
March 16, 2016 at 12:15 am #598720Try passing
$entry->ID
as the second parameter in get_field:$output .= "<div>".get_field("geslacht1", $entry->ID)."</div>";
March 16, 2016 at 10:29 am #598860Thank you @josue.
It works great!March 16, 2016 at 10:33 am #598863You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.