Lines:
1 to 55 of 55
<?php // (C) Copyright Bobbing Wide 2014-2019 /* function bw_related() – Implement [bw_related] shortcode */ /* function bw_query_taxonomy_value() – Determine the tag or category value to use if the given value is not a tag or category slug */ if ( !function_exists( "bw_query_fieldref_value" ) ) { /* function bw_query_fieldref_value() – Return the field value for the given fieldref */ } if ( !function_exists( "bw_query_field_value" ) ) { /* function bw_query_field_value() – Return the field value for the given post */ } if ( !function_exists( "bw_query_field_values" ) ) { /* function bw_query_field_values() – Return the field values for the given post */ } if ( !function_exists( "bw_query_field_type" ) ) { /* function bw_query_field_type() – Query the field type given the field name */ } /* function bw_related_meta_value() – Determine a meta_value based on the field type, the specified meta_value and possibly the "meta_compare" parameter */ /* function bw_check_noderef_types() – Check if the post_type is mentioned in post_types */ /* function bw_query_field() – Query the field name for a noderef pointing to this post type */ /* function bw_query_post_type() – Query the source post type which has a noderef field $meta_key referencing the current_post_type */ /* function bw_query_post_type_and_meta_key() – Query post type and meta key for performing a bw_related */ /* function bw_query_related_fields() – Determine what we should be listing based on the current post */ /* function bw_related__help() – */ /* * Syntax help for [bw_related] shortcode * * Note: the <i>expected</i> parameters for this shortcode include: * post_type= post type(s) to be listed * meta_key = the name of noderef field that refers to this post's type or the date field when searching by date * meta_value = the value we're looking for * meta_compare = used with dates * OR * by = the name of a noderef field attached to this post. * * You may want to add other parameters to further qualify the lookup. * Use the format= parameter to have output displayed using same logic as [bw_pages] * If not specified the output is formatted using [bw_list] logic */ /* function bw_related__syntax() – */View on GitHub