AJD
Forum Replies Created
-
Forum: Plugins
In reply to: [Seriously Simple Podcasting] Customisation of Podcast ArchiveHere’s a snippet to use to output a linked list of all series that a podcast belongs to:
$seriesList = get_the_term_list( $post->ID, 'series', 'Series: ', ', ' ); echo $seriesList;I figured it out, quite simple really, thanks to: get_the_term_list.
Added the following to a filter on the post meta:
if ( 'podcast' == get_post_type() ) { $seriesList = get_the_term_list( $post->ID, 'series', 'Series: ', ', ' ); // Gets the terms with links for the current post from the 'series' taxonomy. $post_info = 'By [post_author_posts_link] '. $seriesList .' '; return $post_info; }Forum: Plugins
In reply to: [Seriously Simple Podcasting] Customisation of Podcast Archive+1
I’d like to know how to show the series (and link to the series) that each episode belongs to.Forum: Plugins
In reply to: [Seriously Simple Podcasting] How do I customize meta field?… a little closer:
add_filter( 'ssp_episode_meta_details', 'pf_episode_details' ); function pf_episode_details($meta){ $meta = "How to filter this?"; return $meta;}
Forum: Plugins
In reply to: [Seriously Simple Podcasting] How do I customize meta field?I’m trying to figure this out as well… except to remove the date recorded only.
I believe this filter is the one to use but haven’t sorted out how yet:
ssp_episode_meta_details
Forum: Plugins
In reply to: [Custom Content by Country (by Shield Security)] Working only for USIndeed, thanks for putting it out.
Forum: Plugins
In reply to: [Testimonial Rotator] The review has no reviewed item specified. ErrorThanks for the reply. I look forward to the next update.
Forum: Plugins
In reply to: [Custom Content by Country (by Shield Security)] Working only for USOkay.
I see what happened now.When I moved WordPress from the development server to the live server, the ip2Nation tables were not transferred. Perhaps because they don’t share the database table prefix? Also, even though the database tables were not present, the plugin did not detect that they were missing.
I imported them manually to the live site and hopefully everything will work.
Forum: Plugins
In reply to: [Custom Content by Country (by Shield Security)] Working only for USHi, thanks.
I did some testing and figured out that the problem is not the plugin. It works fine on the testing server, but the live site is not working. So it either got corrupted in transfer or the live server environment is not allowing it to work.
Is there a way to uninstall the data and plugin, without phpMyAdmin access?
Thanks.
I deleted the account. (That is a throw away domain name anyway.)Hi,
Maybe I am configuring the plugin wrong, but here is my test site, an empty WordPress install with default 2015 theme, and one plugin: Content Aware Sidebars:http://cogentwebdesigns.com/sidebar-tests/index.php/posts-page/
The page above has a custom sidebar with a search and a menu.
The sidebar is set to show on: all posts, all categories, and Static Pages: search results
If you use the search and it returns no results, the custom sidebar goes away.
If you click the category: Category not attached to post, the custom sidebar also goes away.
Perhaps you can look at the admin: user:jjix pass: jjix
thanks
Hi,
I used the example here to customize it.
Genesis has a built in search function that can be filtered, but there is also an example for non-genesis search filter.// Limit search to local info function wcr_search_local($form, $search_text, $button_text) { if( !( is_post_type_archive( 'local' ) || is_singular( 'local' ) || is_tax ('local-info') ) ) return $form; $onfocus = " onfocus=\"if (this.value == '$search_text') {this.value = '';}\""; $onblur = " onblur=\"if (this.value == '') {this.value = '$search_text';}\""; $local_form = ' <form method="get" action="' . get_option('home') . '/" > <input type="text" value="'. $search_text .'" name="s"'. $onfocus . $onblur .' /> <input type="hidden" name="post_type" value="local" /> <input type="submit" value="'. $button_text .'" /> </form> '; return $local_form; } add_filter('genesis_search_form', 'wcr_search_local', 10, 3);Just to make sure it was not theme or custom post type related, I ran the same test on a clean instal with no other plugins and the default 2015 theme.
I only used posts and categories, no custom post types or custom taxonomies. The results were the same.
Custom sidebars do not replace on empty category archives and when a search returns no results.
Forum: Plugins
In reply to: [Easy Custom Sidebars] Does not display when search returns no resultsjust to make sure it was not theme or custom post type related, I ran the same test on a clean instal with no other plugins and the default 2015 theme.
I only used posts and categories, no custom post types or custom taxonomies. The results were the same.
Custom sidebars do not replace on empty category archives and when a search returns no results.
Forum: Plugins
In reply to: [Weather Underground] Localizing to Post LocationsI’m working on a similar situation that may be of some use, I have towns set as a custom taxonomy term.
Basically you have to create a custom function and hook it into your theme where you want it to display: (I’m using Genesis)
//* Output location specific weather add_action('genesis_before_content','my_localized_weather'); function my_localized_weather(){ if(has_term( 'seattle', 'local-info' )){ //checks if seattle is in my local-info taxonomy. $town = 'Seattle'; echo do_shortcode("[wunderground location='$town, WA' numdays='3' layout='simple']"); //All the towns will be in WA so I don't need to modify the state. } } //This function will only work for one city, so it will need modification to work for all cities that I want to check, but it is a starting point.So, if you want to use a custom field you would have to check the meta, and dynamically set a string in the shortcode… something like this (untested):
add_action('your_theme_hook','my_localized_weather'); function my_localized_weather(){ $my_city = get_post_meta($post->ID, 'city-field', true); //if your meta field is called: city-field if ( ! empty ( $my_city ) ) { echo do_shortcode("[wunderground location='$my_city, WA' numdays='3' layout='simple']"); //as long as $my_city has your city this will work. //if your state is WA, otherwise run another meta check to pull in the state name. } }