TTH247
Forum Replies Created
-
Forum: Plugins
In reply to: [Search Everything] [Plugin: Search Everything] Highlight tags & CategoriesI know that this response is late, but for posterity here’s how to highlight tags:
- With your favoured text-editor, open the
search-everything.php
file that is in your/wp-content/plugins
directory/folder. - Go to line 140 (note I’m using version 6.6 of the plugin) and below it, insert the following line of code:
add_filter('the_tags', array(&$this,'se_postfilter'), 11);
The code block from lines 135-142 (again I’m using version 6.6 of the plugin) should now resemble the below sample:
// Highlight content if("Yes" == $this->options['se_use_highlight']) { add_filter('the_content', array(&$this,'se_postfilter'), 11); add_filter('the_title', array(&$this,'se_postfilter'), 11); add_filter('the_excerpt', array(&$this,'se_postfilter'), 11); add_filter('the_tags', array(&$this,'se_postfilter'), 11); }
Forum: Themes and Templates
In reply to: Controlling the HTML Generated by Gallery ShortcodeThanks for the reply. I’ve just ended up using custom fields for the galleries, ie the of number images in the post’s gallery and the shared filename-prefix for the images in said gallery.
Forum: Themes and Templates
In reply to: Alphabetize list of authors created from wp_list_authors()I found a pseudo-solution. The function apparently sorts by the authors’ nicenames. If you set their nicenames to “LastName FirstName”, then the list will alphabetized by last name even though the names appear as “FirstName LastName.”
The catch is that any other instances of the author’s name in your theme (e.g. at the bottom of a post) will likely be generated via the nicename format. So you’ll have to hard-code it as FirstName LastName.
Ok I understand how the
wp_list_authors()
function and theauthor.php
file work now.Forum: Fixing WordPress
In reply to: Insert Permalink of Latest Post from Specific CategoryBoth things work. Thanks.
Forum: Themes and Templates
In reply to: How to align text lower on div class?How do you want the text to be aligned? (e.g. horizontally and vertically centered, left-aligned and vertically centered)
Forum: Fixing WordPress
In reply to: Insert Permalink of Latest Post from Specific CategorySorry I should have been more clear. The second dynamic link is a random post from a specific category (e.g. “Work”) that’s different from the other category (e.g. “Critiques”).
Basically Critiques and Work are parent items in my navigation menu as well as post categories. Beneath Critiques in the menu, there’s a link to the latest post in that category; beneath Work in the menu, I’m trying to get a link to a random post in the Work category.
Forum: Fixing WordPress
In reply to: Insert Permalink of Latest Post from Specific CategoryThanks. I got it to work. I managed to find the category ID via phpMyAdmn, but I’m wondering if there’s an easier way for people.
Also, how would I get a random permalink from a different category and to a separate link in the same navigation menu?
- With your favoured text-editor, open the