Title: samazgor's Replies | WordPress.org

---

# samazgor

  [  ](https://wordpress.org/support/users/samazgor/)

 *   [Profile](https://wordpress.org/support/users/samazgor/)
 *   [Topics Started](https://wordpress.org/support/users/samazgor/topics/)
 *   [Replies Created](https://wordpress.org/support/users/samazgor/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/samazgor/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/samazgor/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/samazgor/engagements/)
 *   [Favorites](https://wordpress.org/support/users/samazgor/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AWS for WordPress] Cannot use a scalar value as an array](https://wordpress.org/support/topic/cannot-use-a-scalar-value-as-an-array-8/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cannot-use-a-scalar-value-as-an-array-8/#post-10908188)
 * i m also having the same issue. is it because of php7.2?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Mission News] Search Box](https://wordpress.org/support/topic/search-box-61/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/search-box-61/#post-9972421)
 * widget will not help since I use full width layout in the blog posts.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Invoices for WooCommerce] pdf invoice not generating giving error](https://wordpress.org/support/topic/pdf-invoice-not-generating-giving-error/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/pdf-invoice-not-generating-giving-error/#post-9853217)
 * Create a “2018” folder in `uploads/woocommerce-pdf-invoices/attchments`
    -  This reply was modified 8 years, 4 months ago by [samazgor](https://wordpress.org/support/users/samazgor/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Invoices for WooCommerce] Can’t generate invoice – fatal error](https://wordpress.org/support/topic/cant-generate-invoice-fatal-error-2/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cant-generate-invoice-fatal-error-2/#post-9853215)
 * Solved by creating 2018 folder 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Invoices for WooCommerce] Can’t generate invoice – fatal error](https://wordpress.org/support/topic/cant-generate-invoice-fatal-error-2/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cant-generate-invoice-fatal-error-2/#post-9849880)
 * Any solution?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Related Posts for WordPress] Caching Posts process stops with 1 post left – how to troublshoot / fix?](https://wordpress.org/support/topic/caching-posts-process-stops-with-1-post-left-how-to-troublshoot-fix/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/caching-posts-process-stops-with-1-post-left-how-to-troublshoot-fix/#post-9719266)
 * I got the same issue. I have NGINX server.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Interactive Content – H5P] Warning: Unable to write to /home](https://wordpress.org/support/topic/warning-unable-to-write-to-home/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/warning-unable-to-write-to-home/#post-8264420)
 * Hi
    thanx for your reply. I got the solution – the problem occurs because of 
   upload dir and it’s pointed from database “wp_options” table -> “upload_path”
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Disqus Conditional Load] Cannot redeclare dsq_pre_comment_on_post()](https://wordpress.org/support/topic/cannot-redeclare-dsq_pre_comment_on_post/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cannot-redeclare-dsq_pre_comment_on_post/#post-7629255)
 * Oh my bad
    thanx it fixed 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Disqus Conditional Load] Cannot redeclare dsq_pre_comment_on_post()](https://wordpress.org/support/topic/cannot-redeclare-dsq_pre_comment_on_post/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cannot-redeclare-dsq_pre_comment_on_post/#post-7629232)
 * Yes during activation. I m using php7. the control panel i m using serverpilot.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Taxonomy Sort] Doesn't Work](https://wordpress.org/support/topic/doesnt-work-1167/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-1167/#post-6836541)
 * Here is the approximate solution and it worked – Open this file _…../wp-content/
   plugins/custom-taxonomy-sort/includes/simple-term-meta.php_
 * Copy paste the following code. I’ve modified the code
 * > <?php
   >  /** Plugin: Copyright 2009 C. Murray Consulting (email : [jake@cmurrayconsulting.com](https://wordpress.org/support/users/samazgor/replies/jake@cmurrayconsulting.com?output_format=md))
   >  This program is free software; you can redistribute it and/or modify
   >  it under
   > the terms of the GNU General Public License as published by the Free Software
   > Foundation; either version 2 of the License, or (at your option) any later 
   > version.
   >  This program is distributed in the hope that it will be useful,
   >  but WITHOUT
   > ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   > FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   >  You should have received a copy of the GNU General Public License
   >  along with
   > this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
   > St, Fifth Floor, Boston, MA 02110-1301 USA */
   > /**
   >  * activation – setup table, store db version for future updates */
   > /* This is unnecessary and this is handled in the parent plugin */
   >  //register_activation_hook(
   > __FILE__, ‘simple_term_meta_install’ );
   > function simple_term_meta_install()
   >  { // setup custom table
   >  global $wpdb;
   >  $table_name = $wpdb->prefix . ‘termmeta’;
   >  if( $wpdb->get_var(“SHOW TABLES LIKE ‘$table_name'”) != $table_name ) :
   >  $sql = “CREATE TABLE ” . $table_name . ” (
   >  meta_id bigint(20) unsigned NOT
   > NULL AUTO_INCREMENT, term_id bigint(20) unsigned NOT NULL DEFAULT ‘0’, meta_key
   > varchar(255) DEFAULT NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY 
   > term_id (term_id), KEY meta_key (meta_key) );”;
   >  require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
   >  dbDelta($sql);
   >  endif;
   >  update_option( “simple_term_meta_db_version”, ‘0.9’ );
   >  }
   > /**
   >  * define postmeta table in wpdb */
   > add_action( ‘init’, ‘simple_post_meta_define_table’ );
   > function simple_post_meta_define_table() {
   >  global $wpdb; $wpdb->termmeta =
   > $wpdb->prefix . ‘termmeta’; }
   > /**
   >  * delete term meta table and db version option upon uninstall */
   > register_uninstall_hook( __FILE__, ‘simple_term_meta_uninstall’ );
   > function simple_term_meta_uninstall()
   >  { global $wpdb;
   >  $table_name = $wpdb->prefix . ‘termmeta’;
   >  $wpdb->query(“DROP TABLE IF EXISTS $table_name”);
   >  delete_option( “simple_term_meta_db_version” );
   >  }
   > /**
   >  * Updates metadata cache for list of term IDs. * * Performs SQL query 
   > to retrieve the metadata for the term IDs and updates the * metadata cache 
   > for the terms. Therefore, the functions, which call this * function, do not
   > need to perform SQL queries on their own. * * [@param](https://wordpress.org/support/users/param/)
   > array $term_ids List of post IDs. * [@return](https://wordpress.org/support/users/return/)
   > bool|array Returns false if there is nothing to update or an array of metadata.*/
   > if(!function_exists(‘update_termmeta_cache’)){ function update_termmeta_cache(
   > $term_ids) { return update_meta_cache(‘term’, $term_ids); } } /** * Add meta
   > data field to a term. * * [@param](https://wordpress.org/support/users/param/)
   > int $term_id Term ID. * [@param](https://wordpress.org/support/users/param/)
   > string $key Metadata name. * [@param](https://wordpress.org/support/users/param/)
   > mixed $value Metadata value. * [@param](https://wordpress.org/support/users/param/)
   > bool $unique Optional, default is false. Whether the same key should not be
   > added. * [@return](https://wordpress.org/support/users/return/) bool False 
   > for failure. True for success. */ if(!function_exists(‘add_term_meta’)){ function
   > add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { return
   > add_metadata(‘term’, $term_id, $meta_key, $meta_value, $unique); } } /** * 
   > Remove metadata matching criteria from a term. * * You can match based on the
   > key, or key and value. Removing based on key and * value, will keep from removing
   > duplicate metadata with the same key. It also * allows removing all metadata
   > matching key, if needed. * * [@param](https://wordpress.org/support/users/param/)
   > int $term_id Term ID * [@param](https://wordpress.org/support/users/param/)
   > string $meta_key Metadata name. * [@param](https://wordpress.org/support/users/param/)
   > mixed $meta_value Optional. Metadata value. * [@return](https://wordpress.org/support/users/return/)
   > bool False for failure. True for success. */ if(!function_exists(‘delete_term_meta’)){
   > function delete_term_meta( $term_id, $meta_key, $meta_value = ” ) { return 
   > delete_metadata(‘term’, $term_id, $meta_key, $meta_value); } }
   > /**
   >  * Retrieve term meta field for a term. * * [@param](https://wordpress.org/support/users/param/)
   > int $term_id Term ID. * [@param](https://wordpress.org/support/users/param/)
   > string $key The meta key to retrieve. * [@param](https://wordpress.org/support/users/param/)
   > bool $single Whether to return a single value. * [@return](https://wordpress.org/support/users/return/)
   > mixed Will be an array if $single is false. Will be value of meta data field
   > if $single * is true. */ if(!function_exists(‘update_termmeta_cache’)){ function
   > get_term_meta( $term_id, $key, $single = false ) { return get_metadata(‘term’,
   > $term_id, $key, $single); } } /** * Update term meta field based on term ID.**
   > Use the $prev_value parameter to differentiate between meta fields with the*
   > same key and term ID. * * If the meta field for the term does not exist, it
   > will be added. * * [@param](https://wordpress.org/support/users/param/) int
   > $term_id Term ID. * [@param](https://wordpress.org/support/users/param/) string
   > $key Metadata key. * [@param](https://wordpress.org/support/users/param/) mixed
   > $value Metadata value. * [@param](https://wordpress.org/support/users/param/)
   > mixed $prev_value Optional. Previous value to check before removing. * [@return](https://wordpress.org/support/users/return/)
   > bool False on failure, true if success. */ if(!function_exists(‘update_term_meta’)){
   > function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = ”){
   > return update_metadata(‘term’, $term_id, $meta_key, $meta_value, $prev_value);}}/***
   > Delete everything from term meta matching meta key. * * [@param](https://wordpress.org/support/users/param/)
   > string $term_meta_key Key to search for when deleting. * [@return](https://wordpress.org/support/users/return/)
   > bool Whether the term meta key was deleted from the database */ function delete_term_meta_by_key(
   > $term_meta_key) { if ( !$term_meta_key ) return false;
   >  global $wpdb;
   >  $term_ids = $wpdb->get_col($wpdb->prepare(“SELECT DISTINCT 
   > term_id FROM $wpdb->termmeta WHERE meta_key = %s”, $term_meta_key)); if ( $
   > term_ids ) { $termmetaids = $wpdb->get_col( $wpdb->prepare( “SELECT meta_id
   > FROM $wpdb->termmeta WHERE meta_key = %s”, $term_meta_key ) ); $in = implode(‘,’,
   > array_fill(1, count($termmetaids), ‘%d’)); do_action( ‘delete_termmeta’, $termmetaids);
   > $wpdb->query( $wpdb->prepare(“DELETE FROM $wpdb->termmeta WHERE meta_id IN(
   > $in)”, $termmetaids )); do_action( ‘deleted_termmeta’, $termmetaids ); foreach(
   > $term_ids as $term_id ) wp_cache_delete($term_id, ‘term_meta’); return true;}
   > return false; }
   > /**
   >  * Retrieve term meta fields, based on term ID. * * The term meta fields
   > are retrieved from the cache, so the function is * optimized to be called more
   > than once. It also applies to the functions, that * use this function. * * 
   > [@param](https://wordpress.org/support/users/param/) int $term_id term ID *
   > [@return](https://wordpress.org/support/users/return/) array */ function get_term_custom(
   > $term_id ) { $term_id = (int) $term_id;
   >  if ( ! wp_cache_get($term_id, ‘term_meta’) )
   >  update_termmeta_cache($term_id);
   >  return wp_cache_get($term_id, ‘term_meta’);
   >  }
   > /**
   >  * Retrieve meta field names for a term. * * If there are no meta fields,
   > then nothing (null) will be returned. * * [@param](https://wordpress.org/support/users/param/)
   > int $term_id term ID * [@return](https://wordpress.org/support/users/return/)
   > array|null Either array of the keys, or null if keys could not be retrieved.*/
   > function get_term_custom_keys( $term_id ) { $custom = get_term_custom( $term_id);
   >  if ( !is_array($custom) )
   >  return;
   >  if ( $keys = array_keys($custom) )
   >  return $keys; }
   > /**
   >  * Retrieve values for a custom term field. * * The parameters must not
   > be considered optional. All of the term meta fields * will be retrieved and
   > only the meta field key values returned. * * [@param](https://wordpress.org/support/users/param/)
   > string $key Meta field key. * [@param](https://wordpress.org/support/users/param/)
   > int $term_id Term ID * [@return](https://wordpress.org/support/users/return/)
   > array Meta field values. */ function get_term_custom_values( $key = ”, $term_id){
   > if ( !$key ) return null;
   >  $custom = get_term_custom($term_id);
   >  return isset($custom[$key]) ? $custom[$key] : null;
   >  } ?>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Taxonomy Sort] Cannot redeclare update_termmeta_cache() (previously declared](https://wordpress.org/support/topic/cannot-redeclare-update_termmeta_cache-previously-declared/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-update_termmeta_cache-previously-declared/#post-6829044)
 * thanx [@novastream](https://wordpress.org/support/users/novastream/)
 * Here is the approximate solution and it worked – Open this file _…../wp-content/
   plugins/custom-taxonomy-sort/includes/simple-term-meta.php_
 * Copy paste the following code. I’ve modified the code
 *     ```
       <?php
       /**
           Plugin: Copyright 2009 C. Murray Consulting  (email : jake@cmurrayconsulting.com)
   
           This program is free software; you can redistribute it and/or modify
           it under the terms of the GNU General Public License as published by
           the Free Software Foundation; either version 2 of the License, or
           (at your option) any later version.
   
           This program is distributed in the hope that it will be useful,
           but WITHOUT ANY WARRANTY; without even the implied warranty of
           MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
           GNU General Public License for more details.
   
           You should have received a copy of the GNU General Public License
           along with this program; if not, write to the Free Software
           Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       */
   
       /**
        * activation - setup table, store db version for future updates
        */
   
       /* This is unnecessary and this is handled in the parent plugin */
       //register_activation_hook( __FILE__, 'simple_term_meta_install' );
   
       function simple_term_meta_install()
       {
       	// setup custom table
   
       	global $wpdb;
   
       	$table_name = $wpdb->prefix . 'termmeta';
   
       	if( $wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name ) :
   
       		$sql = "CREATE TABLE " . $table_name . " (
       		  meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
       		  term_id bigint(20) unsigned NOT NULL DEFAULT '0',
       		  meta_key varchar(255) DEFAULT NULL,
       		  meta_value longtext,
       		  PRIMARY KEY (meta_id),
       		  KEY term_id (term_id),
       		  KEY meta_key (meta_key)
       		);";
   
       		require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
       		dbDelta($sql);
   
       	endif;
   
       	update_option( "simple_term_meta_db_version", '0.9' );
       }
   
       /**
        * define postmeta table in wpdb
        */
   
       add_action( 'init', 'simple_post_meta_define_table' );
   
       function simple_post_meta_define_table() {
       	global $wpdb;
       	$wpdb->termmeta = $wpdb->prefix . 'termmeta';
       }
   
       /**
        * delete term meta table and db version option upon uninstall
        */
   
       register_uninstall_hook( __FILE__, 'simple_term_meta_uninstall' );
   
       function simple_term_meta_uninstall()
       {
       	global $wpdb;
   
       	$table_name = $wpdb->prefix . 'termmeta';
   
       	$wpdb->query("DROP TABLE IF EXISTS $table_name");
   
       	delete_option( "simple_term_meta_db_version" );
       }
   
       /**
        * Updates metadata cache for list of term IDs.
        *
        * Performs SQL query to retrieve the metadata for the term IDs and updates the
        * metadata cache for the terms. Therefore, the functions, which call this
        * function, do not need to perform SQL queries on their own.
        *
        * @param array $term_ids List of post IDs.
        * @return bool|array Returns false if there is nothing to update or an array of metadata.
        */
        if(!function_exists('update_termmeta_cache')){
       function update_termmeta_cache($term_ids) {
       	return update_meta_cache('term', $term_ids);
       }
       }
       /**
        * Add meta data field to a term.
        *
        * @param int $term_id Term ID.
        * @param string $key Metadata name.
        * @param mixed $value Metadata value.
        * @param bool $unique Optional, default is false. Whether the same key should not be added.
        * @return bool False for failure. True for success.
        */
        if(!function_exists('add_term_meta')){
       function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) {
       	return add_metadata('term', $term_id, $meta_key, $meta_value, $unique);
       }
       }
       /**
        * Remove metadata matching criteria from a term.
        *
        * You can match based on the key, or key and value. Removing based on key and
        * value, will keep from removing duplicate metadata with the same key. It also
        * allows removing all metadata matching key, if needed.
        *
        * @param int $term_id Term ID
        * @param string $meta_key Metadata name.
        * @param mixed $meta_value Optional. Metadata value.
        * @return bool False for failure. True for success.
        */
        if(!function_exists('delete_term_meta')){
       function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) {
       	return delete_metadata('term', $term_id, $meta_key, $meta_value);
       }
       }
   
       /**
        * Retrieve term meta field for a term.
        *
        * @param int $term_id Term ID.
        * @param string $key The meta key to retrieve.
        * @param bool $single Whether to return a single value.
        * @return mixed Will be an array if $single is false. Will be value of meta data field if $single
        *  is true.
        */
       if(!function_exists('update_termmeta_cache')){
       function get_term_meta( $term_id, $key, $single = false ) {
       	return get_metadata('term', $term_id, $key, $single);
       }
       }
       /**
        * Update term meta field based on term ID.
        *
        * Use the $prev_value parameter to differentiate between meta fields with the
        * same key and term ID.
        *
        * If the meta field for the term does not exist, it will be added.
        *
        * @param int $term_id Term ID.
        * @param string $key Metadata key.
        * @param mixed $value Metadata value.
        * @param mixed $prev_value Optional. Previous value to check before removing.
        * @return bool False on failure, true if success.
        */
        if(!function_exists('update_term_meta')){
       function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) {
       	return update_metadata('term', $term_id, $meta_key, $meta_value, $prev_value);
       }
       }
       /**
        * Delete everything from term meta matching meta key.
        *
        * @param string $term_meta_key Key to search for when deleting.
        * @return bool Whether the term meta key was deleted from the database
        */
       function delete_term_meta_by_key($term_meta_key) {
       	if ( !$term_meta_key )
       		return false;
   
       	global $wpdb;
       	$term_ids = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT term_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key));
       	if ( $term_ids ) {
       		$termmetaids = $wpdb->get_col( $wpdb->prepare( "SELECT meta_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key ) );
       		$in = implode( ',', array_fill(1, count($termmetaids), '%d'));
       		do_action( 'delete_termmeta', $termmetaids );
       		$wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->termmeta WHERE meta_id IN($in)", $termmetaids ));
       		do_action( 'deleted_termmeta', $termmetaids );
       		foreach ( $term_ids as $term_id )
       			wp_cache_delete($term_id, 'term_meta');
       		return true;
       	}
       	return false;
       }
   
       /**
        * Retrieve term meta fields, based on term ID.
        *
        * The term meta fields are retrieved from the cache, so the function is
        * optimized to be called more than once. It also applies to the functions, that
        * use this function.
        *
        * @param int $term_id term ID
        * @return array
        */
       function get_term_custom( $term_id ) {
       	$term_id = (int) $term_id;
   
       	if ( ! wp_cache_get($term_id, 'term_meta') )
       		update_termmeta_cache($term_id);
   
       	return wp_cache_get($term_id, 'term_meta');
       }
   
       /**
        * Retrieve meta field names for a term.
        *
        * If there are no meta fields, then nothing (null) will be returned.
        *
        * @param int $term_id term ID
        * @return array|null Either array of the keys, or null if keys could not be retrieved.
        */
       function get_term_custom_keys( $term_id ) {
       	$custom = get_term_custom( $term_id );
   
       	if ( !is_array($custom) )
       		return;
   
       	if ( $keys = array_keys($custom) )
       		return $keys;
       }
   
       /**
        * Retrieve values for a custom term field.
        *
        * The parameters must not be considered optional. All of the term meta fields
        * will be retrieved and only the meta field key values returned.
        *
        * @param string $key Meta field key.
        * @param int $term_id Term ID
        * @return array Meta field values.
        */
       function get_term_custom_values( $key = '', $term_id ) {
       	if ( !$key )
       		return null;
   
       	$custom = get_term_custom($term_id);
   
       	return isset($custom[$key]) ? $custom[$key] : null;
       }
       ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin]Plugin that pops up "sign in to continue"](https://wordpress.org/support/topic/a-plugin-that-pops-up-sign-in-to-continue/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/a-plugin-that-pops-up-sign-in-to-continue/#post-6632140)
 * I m also searching like quora.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Fifteen] How to change the default aspect ratio of featured images?](https://wordpress.org/support/topic/how-to-change-the-default-aspect-ratio-of-featured-images/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/how-to-change-the-default-aspect-ratio-of-featured-images/#post-5749065)
 * it does not work with child theme 🙁
    Only works if i change from parent theme.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy External Links] iframe](https://wordpress.org/support/topic/iframe-18/)
 *  Thread Starter [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-18/#post-6387595)
 * Ok
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Facebook Comments] How to combine wordpress and facebook comments counts](https://wordpress.org/support/topic/how-to-combine-wordpress-and-facebook-comments-counts/)
 *  [samazgor](https://wordpress.org/support/users/samazgor/)
 * (@samazgor)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/how-to-combine-wordpress-and-facebook-comments-counts/#post-4247477)
 * I was developing a site where facebook comments are enabled. But my client wants
   to go back to default wp comment system, and also wants to merge those fb comments
   with wp comments. What is the solution ?

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