Title: Gotcha's Replies | WordPress.org

---

# Gotcha

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Plugin Notes Plus] Not maintained](https://wordpress.org/support/topic/not-maintained-6/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/not-maintained-6/#post-13946552)
 * The problem is, when i writing something with “going underline” (Enter).
    Some
   old notes still ok but i can’t edit them too !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Table of Contents Plus] Plugin causes overlap of Social Pug (Grow) and Yoast in Gutenberg editor](https://wordpress.org/support/topic/plugin-causes-overlap-of-social-pug-grow-and-yoast-in-gutenberg-editor/)
 *  [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/plugin-causes-overlap-of-social-pug-grow-and-yoast-in-gutenberg-editor/#post-12492175)
 * I confirm that too…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page-list] Child sub](https://wordpress.org/support/topic/child-sub/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/child-sub/#post-12464346)
 * And i try with :
    [pagelist_ext hierarchical=”0″] But no effect too :/
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page-list] Child sub](https://wordpress.org/support/topic/child-sub/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/child-sub/#post-12464287)
 * Like the option **depth=”1″** but for pagelist_ext
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] The taxon value entered, "orderby", is not valid.](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/#post-6522896)
 * I just change the theme, disable all other plugins … and still the same error
   message …
 * > The taxon value entered, “orderby”, is not valid.
 * It can be just a version of PHP / MySQL / Apache? …
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] The taxon value entered, "orderby", is not valid.](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/#post-6522893)
 * The plugin “Error Log Monitor” works. The problem was between the chair and the
   keyboard 😀
    No error message.
 * I just tested my site on a third server and the result and the same. Always the
   same error message.
    Is this an incompatibility between different plugins? … 
   I will disable all to see.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] The taxon value entered, "orderby", is not valid.](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/the-taxon-value-entered-orderby-is-not-valid/#post-6522892)
 * Damned.
    All the past work is destroyed :'( [https://wordpress.org/support/topic/more-details-in-descriptions?replies=10](https://wordpress.org/support/topic/more-details-in-descriptions?replies=10)
 * I hope that your talent will overcome this difficulty.
    My site is almost ready,
   it only needs your plugin works again ^^
 * Thanks you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] More details in descriptions](https://wordpress.org/support/topic/more-details-in-descriptions/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/more-details-in-descriptions/#post-6376192)
 * Yeah !!
 * [http://www.casimages.com/i/150731084647651366.jpg.html](http://www.casimages.com/i/150731084647651366.jpg.html)
 * It’s a shame to not have the GUI to add the options.
    Because I see that too:
   [https://wordpress.org/support/topic/not-working-1102?replies=10#post-6718291](https://wordpress.org/support/topic/not-working-1102?replies=10#post-6718291)
   Very interesting 🙂
 * Thank you very much Dan !!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] More details in descriptions](https://wordpress.org/support/topic/more-details-in-descriptions/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/more-details-in-descriptions/#post-6376181)
 * Hello Dan,
    Ok I followed all the steps but your code does not work. The plugin
   is healthy. The child theme works. The small code snippet is KO
 * [http://www.julien-moreau.fr/hautlespieds/wordpress/index.php/2015/07/29/304/](http://www.julien-moreau.fr/hautlespieds/wordpress/index.php/2015/07/29/304/)
 * – My **functions.php**
 *     ```
       <?php
       // Chargement en attente des CSS
       // https://codex.wordpress.org/fr:Th%C3%A8mes_Enfant
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
   
       }
   
       // Plugin Document Gallery (thumbnails)
       add_filter('dg_icon_template', 'dg_icon_details_mod', 10, 3);
   
       function dg_icon_details_mod($icon, $descriptions, $id) {
       	if ($descriptions) {
       		$icon =
       		'<div id="document-gallery-1" class="document-icon-wrapper descriptions">' .
       		'   <div class="document-icon">' .
       		'	  <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%"></a>' .
       		'   </div>' .
       		'   <strong>Titre:</strong> %title%<br>' .
       		'   <strong>Legende:</strong> %description%<br>' .
       		'   <strong>Nom du fichier:</strong> ' . basename( get_attached_file( $id ) ) . '<br>' .
       		'   <strong>Taille:</strong> %size%</p>' .
       		'</div>';
       	}
   
       	return $icon;
        }
       ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] More details in descriptions](https://wordpress.org/support/topic/more-details-in-descriptions/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/more-details-in-descriptions/#post-6376162)
 * Test :
 *     ```
       $doc_icon =
       			'   <dl class="attachments attachments-large"><dt class="icon">' . PHP_EOL .
       				'   <a title="%title%" href="%path%" %target%>' . PHP_EOL .
       					'   <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" /></a>' . PHP_EOL .
       				'   </a>' . PHP_EOL .
       			'   </dt>' . PHP_EOL .
       			'   <dd class="caption">' . PHP_EOL .
       				'   <strong>Titre</strong> :  <a title="%title%" href="%path%" %target%>%title%</a>' . PHP_EOL .
       				'   <br/>' . PHP_EOL .
       				'   <strong>Légende</strong> : %CAPTION%' . PHP_EOL .
       				'   <br/>' . PHP_EOL .
       				'   <strong>Nom du fichier</strong> : %FILENAME%' . PHP_EOL .
       				'   <br/>' . PHP_EOL .
       				'   <strong>Taille</strong> : %size%' . PHP_EOL .
       			'   </dd>' . PHP_EOL .
       			'   </dl>' . PHP_EOL .
       			$description;
       ```
   
 * [http://www.casimages.com/i/150730072057363502.jpg.html](http://www.casimages.com/i/150730072057363502.jpg.html)
 * Not very good, so, i’m not a developper ^^
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] More details in descriptions](https://wordpress.org/support/topic/more-details-in-descriptions/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/more-details-in-descriptions/#post-6376158)
 * I found this:
    **class-document.php**
 *     ```
       /*==========================================================================
       		* OUTPUT HTML STRING
       		*=========================================================================*/
   
       	/**
       	 * Returns HTML representing this Document.
       	 * @filter dg_icon_template Filters the DG icon HTML. Passes a single
       	 *    bool value indicating whether the gallery is using descriptions or not.
       	 * @return string
       	 */
       	public function __toString() {
       		include_once DG_PATH . 'inc/class-thumber.php';
   
       		$thumb = $this->gallery->useFancyThumbs()
       			? DG_Thumber::getThumbnail( $this->ID )
       			: DG_Thumber::getDefaultThumbnail( $this->ID );
       		$target   = $this->gallery->openLinkInNewWindow() ? '_blank' : '_self';
   
       		$repl        = array( $this->link, $thumb, $this->title_attribute, $this->title, $target, $this->extension, $this->size, $this->path );
       		$find        = array( '%link%', '%img%', '%title_attribute%', '%title%', '%target%', '%extension%', '%size%', '%path%' );
       		$description = '';
   
       		// if descriptions then add filterable tag and value to replaced tag
       		if ( $this->gallery->useDescriptions() ) {
       			$repl[]      = $this->description;
       			$find[]      = '%description%';
       			$description = '   <p>%description%</p>';
       		}
   
       		$doc_icon =
       			'   <div class="document-icon">' . PHP_EOL .
       			'      <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" /><br>%title%</a>' . PHP_EOL .
       			'   </div>' . PHP_EOL .
       			$description;
   
       		// allow developers to filter icon output
       		$doc_icon = apply_filters(
       			'dg_icon_template',
       			$doc_icon,
       			$this->gallery->useDescriptions(),
       			$this->ID );
   
       		return str_replace( $find, $repl, $doc_icon );
       	}
       ```
   
 * I must not be very far ^^
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Document Gallery] More details in descriptions](https://wordpress.org/support/topic/more-details-in-descriptions/)
 *  Thread Starter [Gotcha](https://wordpress.org/support/users/gotcha/)
 * (@gotcha)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/more-details-in-descriptions/#post-6376157)
 * Hello Dan,
 * Thank you for your quick reply.
    You reassure me! But the PHP it’s not my field.
   Can you refer me a little?

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