Title: termserv's Replies | WordPress.org

---

# termserv

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Error when using Safari SSL combo](https://wordpress.org/support/topic/error-when-using-safarissl-combo/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-safarissl-combo/#post-8724992)
 * Bumping this one, as this is the case for me as well.
 * The issue is that Contact Form 7 loads ajax.gif (the animated spinner) over HTTP,
   and not HTTPS even when site uses SSL.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Tutorial – Error](https://wordpress.org/support/topic/template-tutorial-error/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/template-tutorial-error/#post-1290337)
 * Never mind. Found my problem: You cant use `$page` or `$post` as variable, as
   they are used for holding the pages and posts as objects.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Tutorial – Error](https://wordpress.org/support/topic/template-tutorial-error/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/template-tutorial-error/#post-1290326)
 * What did you do to fix it?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp 2.7 error: Failed to connect to FTP Server http://](https://wordpress.org/support/topic/wp-27-error-failed-to-connect-to-ftp-server-http/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/wp-27-error-failed-to-connect-to-ftp-server-http/page/3/#post-924271)
 * Does this automatic upgrade function support SFTP?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: GD Star Rating] How do I show the most rated posts for the last 7 days?](https://wordpress.org/support/topic/plugin-gd-star-rating-how-do-i-show-the-most-rated-posts-for-the-last-7-days/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-gd-star-rating-how-do-i-show-the-most-rated-posts-for-the-last-7-days/#post-1220600)
 * I might mention that I’ve tried making a template. Then I used the builder to
   setting the source to thumbs (I’m not using stars) and generate function, but
   that wouldn’t work 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page navigation & query_posts](https://wordpress.org/support/topic/page-navigation-038-query_posts/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/page-navigation-038-query_posts/#post-1000532)
 * I found an answer, it can be found here:
 * [http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/](http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page navigation & query_posts](https://wordpress.org/support/topic/page-navigation-038-query_posts/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/page-navigation-038-query_posts/#post-1000531)
 * Does this only affect the index page? It won’t work if I use a custom page template
   with query_posts() 🙁
 *   Forum: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
    In 
   reply to: [“Sticky” Qualifier for query_posts](https://wordpress.org/support/topic/sticky-qualifier-for-query_posts/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/sticky-qualifier-for-query_posts/page/2/#post-873145)
 * I’m bumping this.
 * I want to use the loop as I usually would, except I’m using query_posts to get
   the posts from a specific category. How can I use query_posts and still get the
   sticky posts at the top?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get topmost category parent](https://wordpress.org/support/topic/get-topmost-category-parent/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/get-topmost-category-parent/#post-1117998)
 * I made it work with the following function:
 *     ```
       function in_parent_category($cats, $_post = null)
       {
       	foreach ((array) $cats as $cat)
       	{
       		$descendants = get_term_children((int) $cat, "category");
       		if ($descendants && in_category($descendants, $_post))
       			return true;
       	}
       	return false;
       }
       ```
   
 * Just feed the function with the category ID of the parent, and then it checks
   the current post (if in the loop) if it’s in a category which is a child of the
   category ID you specify.
 *     ```
       if (in_parent_category(4))
       {
       	// do this
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Accessing post slug data in the loop](https://wordpress.org/support/topic/accessing-post-slug-data-in-the-loop/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/accessing-post-slug-data-in-the-loop/#post-831109)
 * Thanks! 🙂 I was a noob back then 😛
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to exclude all child categories of a category from showing up in the loop](https://wordpress.org/support/topic/how-to-exclude-all-child-categories-of-a-category-from-showing-up-in-the-loop/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/how-to-exclude-all-child-categories-of-a-category-from-showing-up-in-the-loop/#post-1046836)
 * Thanks! Just what I was after 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How would you use tags/categories for this site structure?](https://wordpress.org/support/topic/how-would-you-use-tagscategories-for-this-site-structure/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/how-would-you-use-tagscategories-for-this-site-structure/#post-1109072)
 * Yeah you’re right. I watched [CSS-Tricks video podcast #41: Using WordPress as a CMS](http://css-tricks.com/video-screencasts/41-wordpress-as-a-cms/),
   and they based mostly everything on pages.
 * Luckily my client only has three products, so pages would be the easiest to manage
   the content all over his site.
 * Thanks for your feedback! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Modifying links to add date to the database](https://wordpress.org/support/topic/modifying-links-to-add-date-to-the-database/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/modifying-links-to-add-date-to-the-database/#post-1085656)
 * I made it work! 🙂
 * The actual code is in `wp-admin/includes/bookmark.php`
 * I edited the following:
 * **Original line 192:**
    `link_rel = %s, link_notes = %s, link_rss = %s`
 * **New line 192:**
    `link_updated = NOW(), link_rel = %s, link_notes = %s, link_rss
   = %s`
 * **Original line 200:**
    `if ( false === $wpdb->query( $wpdb->prepare( "INSERT
   INTO $wpdb->links (link_url, link_name, link_image, link_target, link_description,
   link_visible, link_owner, link_rating, link_rel, link_notes, link_rss) VALUES(%
   s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",`
 * **New line 200:**
    `if ( false === $wpdb->query( $wpdb->prepare( "INSERT INTO
   $wpdb->links (link_url, link_name, link_image, link_target, link_description,
   link_visible, link_owner, link_rating, link_updated, link_rel, link_notes, link_rss)
   VALUES(%s, %s, %s, %s, %s, %s, %s, %s, NOW(), %s, %s, %s)",`
 * So what I basically did was that WordPress is consequently leaving the field 
   _link\_updated_ out, I just added it to the INSERT and UPDATE queries. WordPress
   doesn’t use them, but now I can make use of them by writing custom code.
 *   Forum: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
    In 
   reply to: [WordPress 2.7 Automatic Upgrade](https://wordpress.org/support/topic/wordpress-27-automatic-upgrade/)
 *  [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/wordpress-27-automatic-upgrade/#post-912918)
 * I have the same problem. But does WordPress require the cURL library to be able
   to do the automatic upgrade?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Modifying links to add date to the database](https://wordpress.org/support/topic/modifying-links-to-add-date-to-the-database/)
 *  Thread Starter [termserv](https://wordpress.org/support/users/termserv/)
 * (@termserv)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/modifying-links-to-add-date-to-the-database/#post-1085649)
 * Well, I am sorting the links itself by ID in descending order. A mockup of how
   it looks is like this:
 * **Category 1**
    - New link
    - Not so new link
 * **Category 2**
    - Newest link
    - Old link
 * Since Category 2 holds the newest link (_Newest link_), I want the the whole 
   Category 2 before Category 1. To make that work, I could pull the links out directly
   from the database using custom code, but since WP doesn’t use the date/time field
   in the links table, I have no way to sort it like this.
 * So I thought I could modify the function that actually adds the links to the 
   database, so it would update that field.

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

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