Support

Account

Forum Replies Created

  • I made it work! Only when I put on the head the restriction. However, I noticed that when saving, the page goes blank and does not load. I think it’s a matter of configuration. Another question is if it is possible for me to play the edit of the fields on a fakepage. Ex:

      site / cpt / post-name / edit will the fields appear without problems, being the same url linked?

  • I made it work! Only when I put on the head the restriction. However, I noticed that when saving, the page goes blank and does not load. I think it’s a matter of configuration. Another question is if it is possible for me to play the edit of the fields on a fakepage. Ex:

      site / cpt / post-name / edit will the fields appear without problems, being the same url linked?

  • My question is: How could I manipulate the information. Ex:
    If the biography does not exist, how could I type it manually? I wanted to save this data received within acf. I can display all the information perfectly. However, I can not manipulate and edit the data I received. Can you point the way?

       <?php
    
    //field is ID
    
    $url = 'https://api.themoviedb.org/3/person/'.get_field('api').'?api_key=f16d933a3e68465c1ef9a4a82b41a2d5&language=pt-BR';
    
    $contents = file_get_contents($url);
    $person=json_decode($contents);
    
    $personname = $person->name; 
    $biography = $person->biography;
    $profile_path=$person->profile_path;
    
    echo $personname . "<br>";
    echo "<img src='https://image.tmdb.org/t/p/w600_and_h900_bestv2/" . $profile_path ."'/ >";
    echo $biography = the_field('biography');
    
    ?>
  • This plugin is very good. I could not do this just using Acf pro?
    For example: Creating the fields and using `$json = file_get_contents($url);
    $data = json_decode($json, TRUE);` .
    To pull the fields in a dynamic way?

  • You can use the ACF – Justified Image Grid gallery
    . I believe you can try implementing a featured image by studying the code documentation.

    https://github.com/tmconnect/ACF-Justified-Image-Grid

  • I was able to solve it, thank you one more time.

      I now have to check how the code does not influence the tags. When I link it it also changes the tags in the loop. I’ll check that out.
    For those who have doubts about how to proceed, follow the code below:

    <?php
    
    $posts = get_field('related_series', $taxonomy . '_' . $term_id);
    
    if( $posts ): ?>
    <ul>
    <?php foreach( $posts as $p ): // variable must NOT be called $post (IMPORTANT) ?>
    <li><?php $feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $p->ID ), 'featured', false, '' );?>
    <a href="<?php echo get_permalink( $p->ID ); ?>"><?php echo get_the_title( $p->ID ); ?><?php echo '<img src="'.$feat_image[0].'">';?></a>
    
    </li>
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>

    Then just code for your needs. I’ll try to do per repeater field.

    I only need to solve three issues with acf to be able to finish my project =). Man, I’ll come soon, pay for some coffee or juice for you!
    Beee helping ever !!

  • It worked like a charm, I only have one problem the image inside the link it stays as if it was redirection will be that I did something wrong example:
    https://www.site.example/person/charlie-cox/%E2%80%9Dhttps://www.site.example/series/daredevil/%E2%80%9D

  • This code` <?php

    $posts = get_field(‘related_series’, $taxonomy . ‘_’ . $term_id);

    if( $posts ): ?>
    <ul>
    <?php foreach( $posts as $p ): // variable must NOT be called $post (IMPORTANT) ?>
    <li>
    <a href=”<?php echo get_permalink( $p->ID ); ?>”><?php echo get_the_title( $p->ID ); ?><?php the_post_thumbnail( ‘featured’ ); ?></a>

    </li>
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>`

    I used the example link: https://www.advancedcustomfields.com/resources/relationship/
    And I added to get the featured image from the related post. However, he repeats the same image for all posts. This is not a repeater field. I’m doing the test without the repeater field.

  • What I am currently needing is to make inside the tag the related post separated by divs. Example: Movies | Series | News. Currently it all comes together. Using acf I can make the related post appear, however the post image does not appear just the title in the custom field.

  • I was able to solve the problem of birthdays by calculating age through this tip.:
    doitwithwp

    And put to work in the taxonomy with adataption of the display:
    $rows = get_field('ocupacao', $taxonomy . '_' . $term_id);

    After I just needed to create a wysiwyg field it could be just text and put the shortcode and the magic happens =)! I hope to help others who have doubts =).
    [show-my-age birthday="02/13/1985"].

  • I used this code and now it seems to work.
    <?php the_field('date_nasc', $taxonomy . '_' . $term_id); ?>

    Hello I managed to resolve a few hours ago =). The only thing I can not solve now is to show the age. For example here in the forum I found some things. It just does not work. I also tried to use the terms nothing. I wanted to include for example: Personality was born in 1981. I can not calculate it 12/16/1981. And show the age of personality. Is there any code here in the forum that is possible to make it work within the taxonomy?

  • Hello great Beee, on the fakes pages. I’ve already used it on the site and it’s working fine. About the videos I wanted to create as in the image below.
    image example http://res.cloudinary.com/meugamer/image/upload/v1520389043/videos-acf_zkbc2d.jpg

      The detail I intend to use everything in a single post, without the need to get pulling from other pages or separate posts. If I created a single page regardless of how many videos I uploaded.

    It would have to be in a dynamic way, I believe it has a shape. I do not know if it would all be inside the single post, or would have to create an exclusive part, just to pull those linked videos.

  • I deleted the old taxonomy and re-created a new one and it looks like it’s working. I’ll go testing it slowly =).

  • Hello, sorry I typed wrong. The site is showing up and the urls are running. I’m just watching, when I’m registering the fields within the post. When saved the post is repeating the same taxonomy. I’ll test if it’s any backend conflict. The good that urls now seem to work. =). Thank you very much. You were very collaborative. This is a personal project in the imdb style. Soon I’m creating many custom files. It’s a project that I’ve already been developing for almost five months.

  • Hello, I saw your message in the other forum. I had already done as you reported. But it does not work all over the site I only have problems in that part. I’m thinking of creating another term instead of short codes to call properly. Because every time I use the field to call taxonomy the site disappears in half.

  • I tried putting it in row to draw a conclusion. Simply the content filled it out, and all the content below in the first image. However, in the second image, I left without filling the taxonomy, of course nothing will appear, but the content with the images of the gallery appears normally. Is it some taxonomy bug? I’m just finding problem with this code, above. You sent me the term_id | object should I create a while for this?

     <?php $rows = get_field('actor');
                     if($rows){
                    echo '<ol class="people scroller">';
                        foreach($rows as $row){
                           echo '<li class="card"><a href='. $row['term_link'] .'><img width="138px" height="175px"  class=" profile fade lazyautosizes lazyloaded" src=' . $row['image-profile'] . ' alt=' . $row['primeiro_nome'] . '> </a><p><a href='. $row['term_link'] .'>'. $row['primeiro_nome'] . ' ' . $row['ultimo_nome'] . '</a></p><p class="character"> ' . $row['personagem_atual'] . '</p></li>';
                          }
                        echo '</ol>';
    
                        }
    
          ?>

  • My problem is when I choose the name of the actors in the front end, only the link of the first actor appears for all. If I put $ term-link to taxonomy it appears: mysite / personal / name-actor. Now if I put row [] it only appears mysite / name-post. However, when I choose the first option. All fields in the image above the url is only for charlie-cox.

    Even selecting all the actors with the correct term. Just the mysite / personal / charlie-cox url. It appears in all fields on the front end rather than appears only in the field that I selected. I hope I have been able to explain correctly now. =)…

  • My problem is when I choose the name of the actors in the front end, only the link of the first actor appears for all. If I put $ term-link to taxonomy it appears: mysite / personal / name-actor. Now if I put row [] it only appears mysite / name-post. However, when I choose the first option. All fields in the image above the url is only for charlie-cox.

    Even selecting all the actors with the correct term. Just the mysite / personal / charlie-cox url. It appears in all fields on the front end rather than appears only in the field that I selected. I hope I have been able to explain correctly now. =).

  • If I put only the $ term_link, it recognizes the taxonomy and shows the path of the taxonomy, but if I put it in row it shows the url of the post and not the taxonomy.

  • Congratulations and thanks for sharing something so important. I did a little test and it worked then I’m just going to change the rewrite to stay full =).

Viewing 25 posts - 1 through 25 (of 30 total)