Title: Harryson's Replies | WordPress.org

---

# Harryson

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/harryson/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/harryson/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/harryson/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455229)
 * Ok, took plugin check little bit further..
 * I figured out that the `get_pages()` was because of this plugin: [http://wordpress.org/extend/plugins/exclude-pages/](http://wordpress.org/extend/plugins/exclude-pages/)
 * And the **[gallery]‘s** source functions, that basically get children was bugged
   because:
    [http://wordpress.org/extend/plugins/post-types-order/](http://wordpress.org/extend/plugins/post-types-order/)
 * I wish the opposite of all the best to the authors of these plugins and hope,
   they will someday learn the essence of correct programming.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Exclude Pages] [Plugin: Exclude Pages] Not Understanding The Purpose of this Plugin?](https://wordpress.org/support/topic/plugin-exclude-pages-not-understanding-the-purpose-of-this-plugin/)
 *  [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-not-understanding-the-purpose-of-this-plugin/#post-2374433)
 * The purpose of this plugin is clear and needed.
 * However, it is bugged as it bugs out the **child_of** parameter inside `get_pages()`.
 * I do not recommend this plugin to anyone!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455227)
 * Problem is much more deeper, then first though. It turns out, that `get_children()`
   or anything with `child_of` in it doesn’t work.
 * So for instance, if we have known page-id, that has child-pages aka. subpages,
   and that page-id is 410:
 *     ```
       $pages = get_pages('child_of=410');
       print_r($pages);
       ```
   
 * Or any other possible querying method, DOESN’T WORK.
 * This definitely isn’t theme-related. So what is it? Possible, that wordpress 
   core is buggy?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to add filter to __() and _e() ?](https://wordpress.org/support/topic/how-to-add-filter-to-_-and-_e/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-filter-to-_-and-_e/#post-2463804)
 * [http://wordpress.stackexchange.com/questions/37086/how-to-add-filter-to-and-e/37088#37088](http://wordpress.stackexchange.com/questions/37086/how-to-add-filter-to-and-e/37088#37088)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455193)
 * So basically, if I cannot retrieve the posts attachments then no surprise, that`[
   gallery]` doesn’t work. Also, no surprise in the fact, how useless this forum
   really is on giving support 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455157)
 *     ```
       $arrImages = get_children('post_parent=' . $post->ID);
       print_r($arrImages);
       ```
   
 * Does not return anything, what could be the problem?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455156)
 * Is there a function, that can retrieve all the posts attachments? So I could 
   create my own shortcode…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make your own catalog?](https://wordpress.org/support/topic/how-to-make-your-own-catalog/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/how-to-make-your-own-catalog/#post-2432661)
 * In a nutshell:
 * 1. Create custom post type and custom taxonomy “categories”
    2. Create a page
   called “the list page” and put in the content [the_list] 3. Create a custom shortcode,
   that displays the list with categories
 * Thanks for your help!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search doesnt search all the custom post types](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/#post-2456349)
 * Ok, totally my bad. My search.php had only one post-type set, so after changing
   to:
 *     ```
       global $wp_query;
       $args = array_merge( $wp_query->query, array(
       	'post_type' => array('post', 'page', 'allfilmteam', 'allfilmnews', 'allfilmcommercials', 'allfilmfilms'),
       	'posts_per_page' => 5,
       	'paged' => get_query_var('paged')
       ) );
       query_posts( $args );
       ```
   
 * Everything was solved.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search doesnt search all the custom post types](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/#post-2456340)
 * So I found this article:
    [http://new2wp.com/noob/wordpress-search-custom-post-types/](http://new2wp.com/noob/wordpress-search-custom-post-types/)
 * and tried out this:
 *     ```
       // Define what post types to search
       function searchAll( $query ) {
       	if ( $query->is_search ) {
       		$query->set( 'post_type', array( 'post', 'page', 'feed', 'allfilmteam', 'allfilmnews', 'allfilmcommercials', 'allfilmfilms' ));
       	}
       	return $query;
       }
   
       // The hook needed to search ALL content
       add_filter( 'the_search_query', 'searchAll' );
       ```
   
 * It didn’t work of course.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search doesnt search all the custom post types](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/search-doesnt-search-all-the-custom-post-types/#post-2456338)
 * Installed the “Search everything plugin” and it didn’t change anything. It still
   doesn’t search some of the post-types.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2455124)
 * 1. Cannot deactivate all plugins, as they are hooked to my site.
    2. Cannot switch
   to standard theme, as it has been deleted 3. No inactive or “dead” plugins.
 * How can this be affected by my custom theme? I didnt find any evidence, that 
   the [gallery] is hooked to themeing in any way.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[gallery] shortcode not displaying anything](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/gallery-shortcode-not-displaying-anything/#post-2454898)
 * When I try to bypass this problem by creating my own shortcode to display the
   gallery. I use `get_children()` that doesn’t return anything at all. So is there
   some trick, maybe when registering your custom post type related to post attachments?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to get custom post type's all custom taxonomies in an array?](https://wordpress.org/support/topic/how-to-get-custom-post-types-all-custom-taxonomies-in-an-array/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/how-to-get-custom-post-types-all-custom-taxonomies-in-an-array/#post-2439525)
 *     ```
       $terms = get_terms($taxonomy = 'mytaxonomy');
       foreach ($terms as $term) {
           echo '<li><a href="' . get_term_link($term->slug, $taxonomy) . '">' . $term->name . '</a></li>';
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hook custom taxonomies to custom post types and make the permalinks work?](https://wordpress.org/support/topic/how-to-hook-custom-taxonomies-to-custom-post-types-and-make-the-permalinks-work/)
 *  Thread Starter [Harryson](https://wordpress.org/support/users/harryson/)
 * (@harryson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/how-to-hook-custom-taxonomies-to-custom-post-types-and-make-the-permalinks-work/#post-2437877)
 * [http://wordpress.stackexchange.com/questions/35936/how-to-hook-custom-taxonomies-to-custom-post-types-and-make-the-permalinks-work/35953#35953](http://wordpress.stackexchange.com/questions/35936/how-to-hook-custom-taxonomies-to-custom-post-types-and-make-the-permalinks-work/35953#35953)
 * My overall solution was, that the custom taxonomy slug was simply: “news/category”
   and indeed the template-name for custom taxonomy would be taxonomy-news_category.
   php Works 100% like I wanted.

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

1 [2](https://wordpress.org/support/users/harryson/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/harryson/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/harryson/replies/page/2/?output_format=md)