termserv
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Error when using Safari SSL comboBumping 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
In reply to: Template Tutorial – ErrorNever 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
In reply to: Template Tutorial – ErrorWhat did you do to fix it?
Forum: Fixing WordPress
In reply to: wp 2.7 error: Failed to connect to FTP Server https://Does this automatic upgrade function support SFTP?
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
In reply to: Page navigation & query_postsI found an answer, it can be found here:
https://stylizedweb.com/2008/08/13/query_posts-pagination-problem/
Forum: Fixing WordPress
In reply to: Page navigation & query_postsDoes this only affect the index page? It won’t work if I use a custom page template with query_posts() ??
Forum: Alpha/Beta/RC
In reply to: “Sticky” Qualifier for query_postsI’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
In reply to: Get topmost category parentI 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
In reply to: Accessing post slug data in the loopThanks! ?? I was a noob back then ??
Thanks! Just what I was after ??
Forum: Themes and Templates
In reply to: How would you use tags/categories for this site structure?Yeah you’re right. I watched CSS-Tricks video podcast #41: Using 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
In reply to: Modifying links to add date to the databaseI 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
In reply to: WordPress 2.7 Automatic UpgradeI have the same problem. But does WordPress require the cURL library to be able to do the automatic upgrade?
Forum: Plugins
In reply to: Modifying links to add date to the databaseWell, 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.