zsvendo1983
Forum Replies Created
-
Obrigado irm?o, deus aben?oe.
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertHow 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.
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertYes
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertwaiting for your position, because your return is once a day, this has taken more than 15 days, it’s complicated.
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insert// 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/j7bx2vForum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertAll 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
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertthis $image is a CPT from the simple thing columnist
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertthe 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().'">'; }
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertI 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 ..
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in inserttest 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
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertI 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]; }
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertsee 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
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertI 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 6 years, 10 months ago by zsvendo1983.
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertthe 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’;`
- This reply was modified 6 years, 10 months ago by zsvendo1983.
Forum: Plugins
In reply to: [WP2Social Auto Publish] Do not search the image in insertI realized that here you insert
$fb_publish_status_insert
I want to know what I have to do here?