Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • How to talk to you, if on the site you do not respond, by email do not respond. take a day to respond, then take the plugin out of the air.

    Yes

    waiting for your position, because your return is once a day, this has taken more than 15 days, it’s complicated.

    // Register Custom Taxonomy Columnists
    function custom_taxonomy() {
    
    	$labels = array(
    		'name'                       => _x( 'Columnists', 'Taxonomy General Name', 'text_domain' ),
    		'singular_name'              => _x( 'Columnist', 'Taxonomy Singular Name', 'text_domain' ),
    		'menu_name'                  => __( 'Taxonomy', 'text_domain' ),
    		'all_items'                  => __( 'All Items', 'text_domain' ),
    		'parent_item'                => __( 'Parent Item', 'text_domain' ),
    		'parent_item_colon'          => __( 'Parent Item:', 'text_domain' ),
    		'new_item_name'              => __( 'New Item Name', 'text_domain' ),
    		'add_new_item'               => __( 'Add New Item', 'text_domain' ),
    		'edit_item'                  => __( 'Edit Item', 'text_domain' ),
    		'update_item'                => __( 'Update Item', 'text_domain' ),
    		'view_item'                  => __( 'View Item', 'text_domain' ),
    		'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),
    		'add_or_remove_items'        => __( 'Add or remove items', 'text_domain' ),
    		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
    		'popular_items'              => __( 'Popular Items', 'text_domain' ),
    		'search_items'               => __( 'Search Items', 'text_domain' ),
    		'not_found'                  => __( 'Not Found', 'text_domain' ),
    		'no_terms'                   => __( 'No items', 'text_domain' ),
    		'items_list'                 => __( 'Items list', 'text_domain' ),
    		'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ),
    	);
    	$args = array(
    		'labels'                     => $labels,
    		'hierarchical'               => false,
    		'public'                     => true,
    		'show_ui'                    => true,
    		'show_admin_column'          => true,
    		'show_in_nav_menus'          => true,
    		'show_tagcloud'              => true,
    	);
    	register_taxonomy( 'columnist', array( 'post' ), $args );
    
    }
    add_action( 'init', 'custom_taxonomy', 0 );

    Now I attached the image to this taxonomy see in the pictures
    https://prnt.sc/j7bx2v

    All this above I did and it did not work, I did not understand what you want? because using the type is CPT that works in the code I sent you, since the plugin does not work, you can simply test.

    See how my CPT is done within the posts

    https://prnt.sc/j7bgb7

    this $image is a CPT from the simple thing columnist

    the spaces are coming because I do the translation, but it follows the code that is working on my site, this is simple to make work in my frontend, see the original code.

    terms = get_the_terms( $post->ID , array( 'columnist') );
                            	
    foreach ($terms as $term) { 
    
    $image = get_field('image', $term->taxonomy . '_' . $term->term_id);                                     	
                                    $size = 'thumbnail';
    			                    $thumb = $image['sizes'][ $size ];			              
    				            if(!empty($thumb)){    					                    
                                    echo '<img src="'.$thumb.'" alt="'.get_the_title().'">';
    
    }

    I sent email to your support was not answered, I added on skype also nothing, online support is always offline, I do not know what else to do ..

    test an image of a category terms in your plugin will see that the foreach does not work because your posts have their own posts-> ID

    I found that in your plugin this foreach does not work, now I do not understand why it would not work

    global $ terms;
    $ terms = wp_get_post_terms ($ post-> ID, 'columnist');
                             foreach ($ terms as $ term) {
                            
                     $ image = get_field ('image', $ term-> taxonomy. '_'. $ term-> term_id);
                             $ size = 'medium-square';
                           $ attachmenturl = $ image ['sizes'] [$ size];
    }

    see here I fixed an image to show you that it does not work what you told me:

    $ terms = wp_get_post_terms ($ post-> ID, 'columnist', array ("fields" => "all"));
    $ image = get_field ('image', $ term-> taxonomy. '_'. $ term-> term_id);
              $ size = 'medium';
    == >> $ attachmenturl = 'https://lagoafm.com.br/wp-content/uploads/jose-andrade-607x480.jpg';

    Even though the $ attachmenturl variable does not work, something is wrong

    I did it both ways none worked.
    I fixed the image just to make it work and it did not work

    $ attachmenturl = xyz_fbap_getimage ($ post_ID, $ postpp-> post_content);
    $ terms = wp_get_post_terms ($ post-> ID, 'columnist', array ("fields" => "all"));
    $ image = get_field ('image', $ term-> taxonomy. '_'. $ term-> term_id);
             $ size = 'medium';
    $ attachmenturl = 'https://lagoafm.com.br/wp-content/uploads/jose-andrade-607x480.jpg';
    
    if ($ attachmenturl! = "")
    $ image_found = 1;
    else
    $ image_found = 0;

    or

    $ attachmenturl = xyz_fbap_getimage ($ post_ID, $ postpp-> post_content);
    
    if ($ attachmenturl! = "")
    $ image_found = 1;
    else
    $ image_found = 0;
    
    $ terms = wp_get_post_terms ($ post-> ID, 'columnist', array ("fields" => "all"));
    $ image = get_field ('image', $ term-> taxonomy. '_'. $ term-> term_id);
             $ size = 'medium';
    $ attachmenturl = 'https://lagoafm.com.br/wp-content/uploads/jose-andrade-607x480.jpg';
    • This reply was modified 1 year, 7 months ago by primo1983.

    the code below was the implementation I did but it did not work, even setting the url right it does not pull this url see the example
    $ attachmenturl = xyz_fbap_getimage ($ post_ID, $ postpp-> post_content);
    $ terms = wp_get_post_terms ($ post-> ID, ‘columnist’, array (“fields” => “all”));
    $ image = get_field (‘image’, $ term-> taxonomy. ‘_’. $ term-> term_id);
                     $ size = ‘medium’;`

    $ attachmenturl = ‘https://lagoafm.com.br/wp-content/uploads/cristina.jpg&#8217;;`

    • This reply was modified 1 year, 7 months ago by primo1983.

    I realized that here you insert
    $fb_publish_status_insert
    I want to know what I have to do here?

    I do not understand why you do not expose the solution here?
    I am questioning because I have seen several people with the same problem, and you have them with a solution selling the PRO, I think you can not do that being a bug it does not fetch the image by terms and only work in the edition, I see the same answer ready for all, I will insist and explain that you put the solution here so that we can pass other people and possible clients.

Viewing 15 replies - 1 through 15 (of 24 total)