Forum Replies Created

Viewing 15 replies - 61 through 75 (of 88 total)
  • Thread Starter iftomkins

    (@iftomkins)

    Thanks, Jane! I don’t think I’d be the best person for the job, at this stage in my WP development anyway.

    Thread Starter iftomkins

    (@iftomkins)

    Hi James, thanks for your response, and for the tip about making the form stay around after submission. I decided to embed the form directly using code generated in the mailchimp list settings. Then I copied and pasted the code into a text/html widget. That means I unfortunately don’t have a URL for you.

    This works out better for me in the end, because I can then have people click checkboxes to indicate which items they want to get email updates about (Mailchimp list groups feature http://blog.mailchimp.com/sending-targeted-emails-with-interest-groups/). I then have RSS Driven Campaigns that will send to the corresponding specific interest groups.

    Thanks again! Alan

    Forum: Plugins
    In reply to: eShop Images

    Thanks, Rich! Now the thumbnails show up. 🙂 I thought I was setting the featured image before, but because I was trying to do it by URL I was just clicking Insert Into Post, because the Set Featured Image link is only visible if you upload the photo directly.

    What I’m trying to figure out now is how to set the featured image automatically. I’m working on synchronizing in-store and online inventory, so posts/products generated automatically with prices, image URLs, etc. and then the images are uploaded separately. The image URL in the generated post corresponds with the image name that was just uploaded, so it all works well. Except for the featured image. I’ve been working on figuring out how to set the featured image automatically when the post is created. Do you think I could connect the eshop thumbnail feature to Get The Image plugin instead of the WordPress Featured Images? The WP featured images seem quite complex and I don’t know how I could replicate all the data generated in the wp_post_meta table when an uploaded image is set as the featured image.

    Forum: Plugins
    In reply to: eShop Images

    Hi Rich,
    I have the same problem, where all of my thumbnails are showing up as little baskets. Only the main thumbnail works (on featured page), but not on the shopping cart page, and not in the sidebar widget. I’ve been working on this for 3 hours and tried everything in the eStore timthumb troubleshooting guide (the theme i’m using your plugin with), and even hostgator can’t help me. Do you have any tips? Thanks!

    To clarify, the timthumb.php script is resizing the images, since the estore/cache folder is being populated with resized images. However, the eshop plugin doesn’t seem to be grabbing and displaying those images properly.

    I think it might have to do with the “S” being capitalized in eStore, since when i try to view the cached image with the direct path with the wrong capitalization, it doesn’t show, but when i use the capital “S”, it shows in my browser. What do you think?

    Is there any way to do this for all users EXCEPT administrator? Thanks!

    I tried Embed Iframe and couldn’t get it to work. On this thread, however, they recommended this plugin, tsl iframe unfilter.

    Installing TSL iFrame Unfilter worked for me. After install, I could include iFrame code in a post, with scrolling=no, frameborder=1, etc. etc. and everything worked fine.

    http://wordpress.org/extend/plugins/tsl-iframe-unfilter/

    Agreed! The tsl iframe unfilter plugin worked for me, too. Exactly what I was looking for!

    Thread Starter iftomkins

    (@iftomkins)

    Very good to know. I can’t seem to figure out how to get the terms only for that particular post (replicating the Terms List Plugin but in the page template). Is this something that can be done? Honestly, I was hoping to cut and paste something into your plugin code that would let me show the count. But I’m thinking I would have to replicate the plugin actions, but for get_terms_by instead of get_the_term_list?

    Thread Starter iftomkins

    (@iftomkins)

    Thanks, Matty! 🙂

    Thread Starter iftomkins

    (@iftomkins)

    Hi Matty,
    Thanks for your response. I haven’t tested the new version since, in the interim, I started using the Anchor Links plugin, which performs a similar function. http://wordpress.org/extend/plugins/anchor-links/

    The only thing that the Anchor Links can’t do, and which seems WP Section Index can’t quite do either, is to parse more than 1 Header Tag and organize them hierarchically. So, instead of choosing H2, H3 OR H4, being able to Choose H2 AND H3, for example, and then have the H3s displayed in the section index indented (like children)under the H2. Let me know if you have any tips on this. Thanks again for your work on the plugin!

    Best,
    Alan

    This is the best thing I’ve found so far: http://www.seabreezecomputers.com/tips/find_custom2.js
    (code to insert in your HTML is included in the intro section).

    You can modify the styling of the pop-up box to match your CSS (default colors are rough). I made mine straight up gray: Modified JS is here: http://www.nextgenresale.com/wp-content/themes/TheCorporation/js/find_in_page.js

    Main Drawbacks I’ve found:
    -In Firefox, it disables the Control-F keyboard command
    -Because it uses floating divs, sometimes when you hit next, the find on page window disappears from view. Confusing. But this only happens sometimes.

    Overall: Better than nothing, but not a great solution.
    Interesting: It has an option for Firefox only to trigger the native browser Control-F function! This is perfect, if only it didn’t a) disable the actual keyboard Control-F command in Firefox, and b) if this also triggered the native Control-F find function in other browsers.

    I’m looking, too!

    Thread Starter iftomkins

    (@iftomkins)

    MichaelH – here is the plugin code, in its entirety. Any thoughts on adapting your suggested chunk of code to restrict what taxonomy terms are listed by the plugin code below? Thanks!

    if( !function_exists( 'pr' ) ) {
    	function pr( $var ) {
    		print '<pre>' . print_r( $var, true ) . '</pre>';
    	}
    }
    
    if( !function_exists( 'mfields_taxonomy_terms_list' ) ) {
    	add_filter( 'the_content', 'mfields_taxonomy_terms_list' );
    	function mfields_taxonomy_terms_list( $c ) {
    		global $post;
    		$o = '';
    		$terms = array();
    		$lists = array();
    		$custom_taxonomy_names = array();
    		$custom_taxonomies = mfields_get_custom_taxonomies();
    		if( !empty( $custom_taxonomies ) )
    			foreach( $custom_taxonomies as $name => $config )
    				$custom_taxonomy_names[] = $config->name;
    		if( !empty( $custom_taxonomy_names ) )
    			$terms = get_terms( $custom_taxonomy_names );
    		foreach( $custom_taxonomies as $name => $config )
    			$o.= get_the_term_list( $post->ID, $name, $before = '<div class="taxonomy-term-list"><div class="mfields-taxonomy-term-list-name">Related ' . $config->label . ':</div> ', $sep = '<br />', $after = '</div>' );
    		if( is_single() || is_page() )
    			return $c . $o;
    		return $c;
    	}
    }
    
    $taxonomy = 'post_tag';
    $args='';
      $terms = wp_get_post_terms($post->ID , $taxonomy, $args);
      if ($terms) {
        foreach ( $terms as $term ) {
          if ($term->count > 1) {
            echo '<p><a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> has ' . $term->count . ' post(s). </p> ';
          }
        }
      }
    
    if( !function_exists( 'mfields_get_custom_taxonomies' ) ) {
    	function mfields_get_custom_taxonomies( ) {
    		global $wp_taxonomies;
    		$custom_taxonomies = array();
    		$default_taxonomies = array( 'post_tag', 'category', 'link_category' );
    		foreach( $wp_taxonomies as $slug => $config )
    			if( !in_array( $slug, $default_taxonomies ) )
    				$custom_taxonomies[$slug] = $config;
    		return $custom_taxonomies;
    	}
    }
    
    ?>

    Thread Starter iftomkins

    (@iftomkins)

    Thanks, @michaelh.

    I tried putting it in my loop, but it affected neither the plugin’s list of related taxonomy terms, nor my customized wp_list_categories function in the sidebar that displays my custom taxonomy terms.But since I wasn’t really sure exactly how to “plug in” the code, so to speak, I might be getting it wrong. What does the code you proposed connect to? What functions or lists of terms will be restricted by it?

    Ideally I was looking for a way to add that type of condition to Michael Field’s Taxonomy Term List plugin. Maybe one day! 🙂

    Hi. I have also been working on displaying lists of custom taxonomies. Michael’s plugin displays all related taxonomies to the given post. If you want to display one or a few of your own custom taxonomies, I’ve found a couple ways:

    The best solution is probably to modify this code, which is from the WordPress Codex http://codex.wordpress.org/Template_Tags/wp_list_categories#Display_Terms_in_a_custom_taxonomy.

    <?php
    //list terms in a given taxonomy using wp_list_categories (also useful as a widget if using a PHP Code plugin)
    
    $taxonomy     = 'genre';
    $orderby      = 'name';
    $show_count   = 0;      // 1 for yes, 0 for no
    $pad_counts   = 0;      // 1 for yes, 0 for no
    $hierarchical = 1;      // 1 for yes, 0 for no
    $title        = '';
    
    $args = array(
      'taxonomy'     => $taxonomy,
      'orderby'      => $orderby,
      'show_count'   => $show_count,
      'pad_counts'   => $pad_counts,
      'hierarchical' => $hierarchical,
      'title_li'     => $title
    );
    ?>
    
    <ul>
    <?php wp_list_categories( $args ); ?>
    </ul>

    A second option is the Custom Taxonomies Menu Widget: http://wordpress.org/extend/plugins/custom-taxonomies-menu-widget/. It has lots of options for hiding/displaying custom taxonomies.

    I am currently using this widget inside a page by defining a new widget area. http://wordpress.org/support/topic/how-to-create-new-widget-area?replies=5

    Good luck!

Viewing 15 replies - 61 through 75 (of 88 total)