Hot answers tagged

2

Here is your updated function solving your 2 problems : // Post title as keywords, excluded stop words function title_as_keywords( $word ) { $blacklist = array('this', 'about', 'that', 'them'); // Excluded words ... $whitelist = array('one', 'man', 'boy'/*etc..*/); // Whitelisted words ... if ( (!in_array( $word, $blacklist ) && strlen( ...


2

You could set up a custom post type with custom taxonomies and then allow people to filter the results or do a search. Failing that, perhaps an event plugin would help. It depends on how much coding you want to do or if you want to try and find a plug and play solution.


1

Pass the array of arguments with key include. $tags = get_tags(array('include' => '10, 11, 34, 35'));


1

It is not recommended to use query_posts. But this is not the problem, Problem is you are using PHP variable in single quotes. 'tag=$tag' Consider these examples: query_posts('tag=php'); //OR query_posts("tag=$tag"); //$tag should output: php Using WP_query //Recommended $query = new WP_Query(array( 'tag' => 'php' )); Ref: WP_Query-Tag_Parameters ...



Only top voted, non community-wiki answers of a minimum length are eligible