Halit Ayarc?
Forum Replies Created
-
Thank you Paul
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Import Data To Relationship FieldNot at all.
Thank you for finding the solution ??Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Import Data To Relationship FieldHello Scott,
Today there was new update on the PODS plugin. I applied that update (to version 2.9.3) now the import works fine as it used to.
Thanks for your help
MehmetForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Import Data To Relationship FieldHello Scott,
save / cache clear did not work.
Any other suggestions?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Import Data To Relationship FieldThank you, I’ll inform you asap if the save /cache works.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Import Data To Relationship FieldUnfortunately I don’t know the previous version I was using.
The field was for the actors. I would create custom posts “Meryl Streep” and “Clint Eastwood” using “Actors” pod. When I wanted to import “The Bridges of Madison County” it would be in the “Title” column, the director column would be “Clint Eastwood” as text and the “Actors” field would be “Meryl Streep, Clint Eastwood” and they were both included in the “film_actors” relationship field accurately.
Hi Paul
I did the lazy thing, and created a simple text field which had the data from the custom taxonomy. I know it’s not an ideal solution but when I need the data as text I’ll use that field and when I need taxonomy I’ll use “film_genre”
Thank you very much for your help.
Mehmet
Hi Paul,
I think I’d better drop the film_genre field; because it is still not displaying ??
Thank you for your time and attention. I really don’t want to trouble you any longer as I already took too much of your time.
Thank you very much for your help ??
Mehmet
I tired changing
esc_html( get_post_meta( $film['ID'], 'film_genre', true ) )
to
esc_html( get_term_meta( $term_id['793'], 'film_genre', true ) )
but still couldn’t get the custom taxonomy data. 793 being the ID of the custom taxonomy “film_genre”
Hi Paul,
Thanks for the correction. The location is fixed; but what I forgot to mention earlier was “film_genre” is a custom taxonomy. It’s not a simple text field. I checked the meta key and it exactly matches and it is still not showing…
Thanks
MehmetHi Paul,
Thank you very much. The sorting is done alphabetically now and it works like a charm as a shortcode which I defined through Snippets plugin. The only thing is ‘film_genre’ field is not displaying. It lists the films in correct order and with their correct permalinks but “Film Genre:” stays empty.
Also when I add the shortcode in the auto template, it doesn’t matter where I put [actorfilms] it always writes on the top section
Thanks Mehmet
- This reply was modified 2 years, 9 months ago by Halit Ayarc?.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] empty list element is createdYou are absolutely right. Next item on todo list ?? Again, thank you very much
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] empty list element is createdOh my… I am so sorry… It has been days looking at this and not seeing ??
Thank you very muchForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] empty list element is createdSorry, my mistake writing directly… The code is:
[if actor_films] <ul class="filmlist"> [each actor_films] <li><a href="{@permalink,esc_url}">{@name}</a> <br>Film Genre: <span style="font-size:90%;font-weight:400;">{@film_genre}</span><li> [/each] </ul> [/if]
- This reply was modified 2 years, 9 months ago by Halit Ayarc?.
the full code is:
<?php
function slug_order_archive_by_field( $query ) {if ( $query->is_main_query() &&
is_post_type_archive( ‘exhibition’ ) ) {
$query->set( ‘meta_key’, ‘exhibition_end_date’ );
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘orderby’, ‘meta_value_date’ );
}
}
add_action( ‘pre_get_posts’, ‘slug_order_archive_by_field’ );
?>In the query monitor for pre_get_posts hook there is this message:
slug_order_archive_by_field()
wp-content/plugins/insert-php/includes/class.execute.snippet.php(634) : eval()’d code:1- This reply was modified 2 years, 10 months ago by Halit Ayarc?.