drcherrychocolate
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Custom "Insert into Post" CodeI would also like to be able to customize the output of the Insert into Post. Can anyone suggest a good approach? Can I add a filter to this? Is there an existing plugin for this?
Forum: Themes and Templates
In reply to: Displaying special title in the header how?Oh, right I hadn’t thought to look in the <title> tag further up in the header. That gives me wp_title(”); and other stuff to work with.
Forum: Themes and Templates
In reply to: Displaying special title in the header how?Can anyone go for the bonus points? Because on my category pages, that displays the first post in that category when I’d like the title to be the category.
I suppose I can drop a big series of “if” statements into the header like
if ( is_singular() ) get_the_title() else if ( is_category() ) single_cat_title( '', true ) else if ( is_front_page() ) ...
But it seems inelegant.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Templated Events List?Is there any good plugin for “Hey, you want a list of things? You can build lists of things, and specify what attributes they will have” or at that point do they just make you write your own plugin?
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Templated Events List?Maybe I don’t need The Events Calendar? I’ve been looking at a couple other events plugins. “Event Calendar” “wp-events” “simple-events-list” I’ll see if any are good.
Like, really I just need a list of items to which I can attach a date/time, description and location. Maybe I could make them a category of post and add all that extra info as custom fields? It’s not the most elegant solution, because then I’ve got to exclude that category everywhere else, but at least then I’ll have access to pull out that data and display it as I see fit.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Templated Events List?You know, like how a lot of WordPress functions have X() which displays the list and get_X() which returns an array?
Is there any sort of equivalent to get_sidebarEventsList() ?
Forum: Fixing WordPress
In reply to: Search relevance after adding special search criteriaI’m still having problems with this. The relevanssi_query() parameter isn’t what I thought it was. I thought I could just pass it $query_arr, but I guess that’s not it, so it’s ignoring all the search parameters I set.
How do I do a relevanssi search with criteria that I’ve set? I’ve got stuff like:
$query_arr['year']=$date_arr[0]; $query_arr['monthnum']=$date_arr[1]; $query_arr['category__not_in']=Array('13','30'); $query_arr['post_type']='posts'; if ($query_arr['location']!='') { if ($query_arr['cat']!='') { $query_arr['category__and']=array($query_arr['cat'],$query_arr['location']); $query_arr['cat']=null; $query_arr['location']=null; } else { $query_arr['cat']=$query_arr['location']; } }
And I could get it to work with the regular search by just calling
query_posts($query_arr)
but I don’t know how to use any of this stuff with relevanssiForum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] Get related posts as arrayI’m also going to try this. For each post, there is a thumbnail gallery of images attached to the post. My goal is to get a list of the images attached to the related posts, and add them to that gallery.
Forum: Fixing WordPress
In reply to: Search relevance after adding special search criteriaOkay, found I could get it to work by using
relevanssi_query()
where I would normally use query_posts()Forum: Fixing WordPress
In reply to: Searching only posts, not pagesOkay, found this:
$query_arr['post_type']='post';
by looking through the query_posts reference page.