Title: dorich's Replies | WordPress.org

---

# dorich

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BulletProof Security] Why am I getting "..Undefined Index…" Messages?](https://wordpress.org/support/topic/why-am-i-getting-undefined-index-messages/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/why-am-i-getting-undefined-index-messages/#post-6265010)
 * Thanks.
    I used the first suggestion, and that solved the problem.
 * I found I didn’t have the second and third items in my wp-config.php file. So
   I added them and set them to false.
 * Thanks for the help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Footnotes] Can you include hyperlinks as the reference?](https://wordpress.org/support/topic/can-you-include-hyperlinks-as-the-reference/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/can-you-include-hyperlinks-as-the-reference/#post-5357886)
 * Not a problem with the plugin but with my blogging software.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Footnotes] Can you include hyperlinks as the reference?](https://wordpress.org/support/topic/can-you-include-hyperlinks-as-the-reference/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/can-you-include-hyperlinks-as-the-reference/#post-5357884)
 * Update: Ah, the problem is with the <iframe> tag.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ShortCodes UI] Short code removed after editing code](https://wordpress.org/support/topic/short-code-removed-after-editing-code/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/short-code-removed-after-editing-code/#post-4407391)
 * [@conrad90](https://wordpress.org/support/users/conrad90/)
    I’m a neophyte on
   this subject but I believe that the process of linking to JS files is to register
   them in the functions file, so they are now universally available by calling 
   their handle. Then, still in the functions file, you can call them on a page 
   by page basis, using the enqueue function. This set up method also provides control
   over the dependency of the scripts. For example since you want the jQuery library
   to load before the script in question you can define the dependency in your registration.
   That way the library will load before the script in question.
 * In this manner WP does the work for you and there is no need to add the script
   to the header.
 * Regarding the use of $, I think you will find that you can use
    jQuery(document).
   ready(function($) {}) …. and from then on in your script you can use $
 * The codex reference is [here](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ShortCodes UI] Short code removed after editing code](https://wordpress.org/support/topic/short-code-removed-after-editing-code/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/short-code-removed-after-editing-code/#post-4407388)
 * [@conrad90](https://wordpress.org/support/users/conrad90/)
    Apologies but I don’t
   recall the solution. My best guess is that it had something to do with registering
   and enqueueing scripts but I can’t be sure.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ShortCodes UI] Short code removed after editing code](https://wordpress.org/support/topic/short-code-removed-after-editing-code/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-removed-after-editing-code/#post-4406958)
 * Update:
 * I tried an experiment with a simple text short code.
    The short code was shown
   in the short code list and was being inserted into a page where the short code
   was used.
 * Then I edited the contents of the short code and upon clicking update it was 
   converted to a post and removed from the short code list.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Re-installing WordPress after site hack](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/#post-4198426)
 * [@tara](https://wordpress.org/support/users/tara/):
 *  thanks for the links. I reviewed them and found a lot of useful information 
   to add to the process of cleaning up the site with a clean install.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Re-installing WordPress after site hack](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/#post-4198421)
 * [@seriousowl](https://wordpress.org/support/users/seriousowl/): I do have backups
   from each WordPress upgrade but I think I’ll stick with the file deletion approach.
   
   Thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Re-installing WordPress after site hack](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/re-installing-wordpress-after-site-hack/#post-4198420)
 * [@leejosepho](https://wordpress.org/support/users/leejosepho/)
 * The only symptom I have is that the “readme.html file is being redirected when
   I view it. While its possible that this is the only problem on the site I have
   a mindset that says that the best thing I can is to remove the current installation
   and start again.
    You raise a good point that I hadn’t considered. I have to 
   remove the existing database and create a new one. I plan to download the posts
   into a desktop blogging application. So I’m assuming that with a new database
   I can then safely upload the saved posts to the new database.
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How To Display Specific Terms](https://wordpress.org/support/topic/how-to-display-specific-terms/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/how-to-display-specific-terms/#post-4087895)
 * The solution to the problem is that by default terms having no posts are not 
   displayed. This can be changed by adding “hide_empty”=>0 to the parameter list.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sorting Custom Posts On Taxonomy Template](https://wordpress.org/support/topic/sorting-custom-posts-on-taxonomy-template/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/sorting-custom-posts-on-taxonomy-template/#post-3971091)
 * [@tracy](https://wordpress.org/support/users/tracy/)
    Thanks for your response,
   very much appreciated.
 * The reason I didn’t use WP_Query is that I have shown that the posts I want have
   already be returned so it didn’t seem necessary to create a new query. Although
   obviously that is a way to solve the problem. However, I wanted to leverage the
   built-in functionality of WP and that was the reason for using the taxonomy template.
   The slug on the template defines the posts to be returned and so the problem 
   seems to be how to get the returned posts sorted.
 * Along with your solution I’ll note here for anyone else who encounters this type
   of problem that you can solve it be adding a function and using the ‘pre_get_posts’
   hook. I didn’t develop this solution, but you can see the full answer [here](http://wordpress.stackexchange.com/questions/108235/alter-post-order-on-taxonomy-template/108238?noredirect=1#108238).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get ID of adjacent posts when sorted by custom field](https://wordpress.org/support/topic/get-id-of-adjacent-posts-when-sorted-by-custom-field/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [13 years ago](https://wordpress.org/support/topic/get-id-of-adjacent-posts-when-sorted-by-custom-field/#post-3796715)
 * The plugin “[Next/Previous Post Link Plus for WordPress](http://www.ambrosite.com/plugins/next-previous-post-link-plus-for-wordpress)”
   does provide the capability to return the ID of the next and previous post.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Ambrosite Next/Previous Post Link Plus]Custom Field Value in Link](https://wordpress.org/support/topic/plugin-ambrosite-nextprevious-post-link-plus-custom-field-value-in-link/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [13 years ago](https://wordpress.org/support/topic/plugin-ambrosite-nextprevious-post-link-plus-custom-field-value-in-link/#post-3796714)
 * The plugin does provide the capability to return the ID of the next and previous
   posts by using ‘return’ in the arguments.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Code Widget] Any Limitations?](https://wordpress.org/support/topic/any-limitations/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/any-limitations/#post-3426800)
 * That solved it.
 * Thanks for the help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is there a way to check if a single post is attached to a particular taxonomy](https://wordpress.org/support/topic/is-there-a-way-to-check-if-a-single-post-is-attached-to-a-particular-taxonomy/)
 *  Thread Starter [dorich](https://wordpress.org/support/users/dorich/)
 * (@dorich)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/is-there-a-way-to-check-if-a-single-post-is-attached-to-a-particular-taxonomy/#post-3378382)
 * I worked out one solution for this as follows:
 *     ```
       $terms = get_the_terms( $post->ID , 'chapter');
        if($terms) { *additional code to be added to the template* }
       ```
   
 * If any terms in the taxonomy ‘chapter’ are returned the additional code is added
   to the template otherwise the additional code is omitted.
 * I don’t know if this needs any additional error checking but the code as shown
   works by including code on the appropriate posts and omitting it where its not
   required.
 * Any suggestions on improvements would be welcome.

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

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