• Hello everyone,
    I wonder If you could help me out a little bit. Im currently searching for a specific plugin (paid or no paid – doesnt matter). I have a game magazine and we have reviews there obviously as well. I would love to have some kind of plugin that will let me create some kind of “box” which I could put in to the post right at the end of review, which will contain some image (cover of the game lets say) and some brief info about it like release date, platform, genre, who provided game for rewviw, …

    The problem is, I cant really find this kind of plugin because I dont what keyword should I use If searching for something like that.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    Are you adding content for game magazine under WordPress Post section?
    If yes OR if you are some other kind of plugin, it better to use Advanced Custom Fields.

    This plugin will create extra meta box under your post section where you can enter game related data. Once all data added, next step is to display. To display data from acf meta boxes is very simple.

    Please let me know ??

    Thread Starter Michal Frajkor

    (@trieda2f)

    Doesnt quite understand your first question so Im sorry but basically, Im adding contect by creating new post, yes, there, I will write whole review and at the very end, it would be nice to have some 2 column “box” thing which will display game cover on the left and some brief info (name, description) and some “list-like” info for example
    – Release date: …
    – Platform: …
    – Genre: …
    – Game provided by: …
    (info on the right)

    I took a look on ACF youve send me, looks pretty nice I would test out free version if it does what I want ?? Thanks for fast reply.

    Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    Thanks for your reply ??
    Ok so you are using WordPress POST menu to add the Game details. Right?
    You can achieve this with FREE version of ACF BUT should know how to use ACF function to display data on the fontend side.

    Do you want to display all these game info under detail page of Game?

    Here is some kind reference : https://screenshots.firefox.com/posgXaNbdkMgpVI7/easydigitaldownloads.com

    Thread Starter Michal Frajkor

    (@trieda2f)

    Hey,

    at this moment I think you misunderstood a little bit, but that’s probably because of my bad explanation. Ill try to clarify better what I want. You are talking about Game details page. No thats not what I want (I mean it WOULD be great to have that and if ACF can do that, why not, butactual topic is:)

    Posts > New post
    Bla bla bla whole review like an basic ordinary article in WordPress.
    At the very end, brief info (see screenshot)
    So I dont really need to make whole new page for a game, there will be nothing clickable just an info with image. Editor making the review will create new ones for every new game review.

    I took a screenshot for you.
    https://screenshots.firefox.com/2Su6NGS4ABItZIsw/www.spawn.sk

    So basically I created this with WP Bakery using Message box, image is aligned to the left, inserted into text. Its not exactly what I was looking for but I want something very very very similar if not the same but Im finding easier way to do it. Not with WPBakery every time. ACF looks good I can create fields, add image, now its just a question how to show it and how to make it a little bit like “box” like on the screen.

    Im very sorry If I sound stupid with this explanations. ??

    Thanks for helping me out.

    Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    I am getting what you are saying ??
    To display ACF filed data in front end side in a better way, you should know the deigning part + ACF inbuilt functions.

    Here is ACF doc link : https://www.advancedcustomfields.com/resources/ and check for Field Types

    You need to check Template usage and need to add that code in your theme files(where you want to display the data).

    Hope now i am making things more clear ??

    ACF work like this:

    1) Create meta boxes as per your need
    2) To display them on front end side, use ACF inbuilt function like if you want to display a data added in a text field, use <h2><?php the_field('text'); ?></h2> where text is field name.

    Thread Starter Michal Frajkor

    (@trieda2f)

    So when working with ACF, first I need to create some Field Group (sorry plugin is automatically in my site language dont know how its called in original but Im guessing its something like this).

    In the Field Group Im creating different fields. And when youre saying I should put field_name in that piece of code you mean name of the field I just created in Group or whole Group name.

    In case I want to display all fields I should use that code over and over again but with different field names to show them all? Am I getting it right?

    Thanks ??

    Anoop Ranawat

    (@anoopranawat)

    Hello,

    Yes ?? you are right. You need to use field_name. If you have created multiple fields under a group, then you need to repeat the process by using field names to show them all.

    I think now we are very close ??

    Thread Starter Michal Frajkor

    (@trieda2f)

    We are getting close certainly. One thing I cant still understand is that piece of code. On ACF site it says I should put it in my theme. I can put it where I want thats true. In functions, in my Post code, but as far as I know, this .php files are used for all posts (In case i will put it in my single.php which is template for posts).

    So lets say i will put <h2><?php the_field('text'); ?></h2> in my single.php and I replace “text” with my field which should be lets say “release_date”. Now I guess I can (somehow) call it to the actual post at the end, whenever I want to show it. If I do that, it will always be the same value because its taking it from template single.php for every post am I right? Well more like, I know Im not but as I said, this one needs to be clarified for me ??

    Thanks for sticking around still.

    Anoop Ranawat

    (@anoopranawat)

    Hello,

    First of all please take all fields in a variable:

    
    $field_1 = get_field('field_1'); 
    $field_2 = get_field('field_2');
    $field_3 = get_field('field_3');
    $field_4 = get_field('field_4');
    $field_5 = get_field('field_5');

    Now to display

    <?php echo $field_1; ?>
    <?php echo $field_2; ?>
    <?php echo $field_3; ?>
    <?php echo $field_4; ?>
    <?php echo $field_5; ?> 

    If you are using it in a single.php file, it will show the data of respective POST.

    You can use get_field OR the_field where get_field need to be use with echo where the_field use without echo.

    Are you getting any issue with this?

    Thread Starter Michal Frajkor

    (@trieda2f)

    Im not really sure how to put both of codes you send.
    Both in single.php am I right?

    Ill play a little bit around with it and let you know If somethings come up, or (as I hope) will finally get it done as I want ??

    I already owe you a six-pack of beer tho ?? Thanks!

    Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    You need to add above code in single.php file only. I have just shared a demo code.

    Thread Starter Michal Frajkor

    (@trieda2f)

    Aaaaaalright so this is what i have now in single.php
    As Im not that skilled in programming Im not sure if thi sis fine. If it is, how to call it on actual post then?

    Screenshot: https://screenshots.firefox.com/pDAY2X27O92SSuI5/www.spawn.sk

    Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    You are doing a small mistake ??

    This should be like this :

    <?php
    if ( have_posts() ) :
    	while ( have_posts() ) : the_post();
    	
    	$field_1 = get_field('field_1'); 
    	$field_2 = get_field('field_2');
    	$field_3 = get_field('field_3');
    	$field_4 = get_field('field_4');
    	$field_5 = get_field('field_5');
    	
    	echo $field_1;
    	echo $field_2;
    	echo $field_3;
    	echo $field_4;
    	echo $field_5;
    	
    ---	Your code ---
    
    	endwhile;
    endif; ?>	
    Thread Starter Michal Frajkor

    (@trieda2f)

    Got it, and its working, although I had to remove it for now because its showing at the right beginning of the article, even before actual post thumbnail as you can see on screenshot. That text above image is data I provided to the fields so they are showing right, now I just need to put them at the end of the review and give them fancy look. Any advice (Im sure this requires quite of a work so I understand you cant tell me how to do everything) where could I found helpful information about positioning and making it look better?

    Screen: https://screenshots.firefox.com/IrAEIsQDHyWsUlcQ/www.spawn.sk

    Thanks!

    Anoop Ranawat

    (@anoopranawat)

    Hello @trieda2f

    Now you need to design this in a better way ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Looking for a “box” plugin’ is closed to new replies.