Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thank you @deanoakley 🙌

    Thread Starter nicksoper

    (@nicksoper)

    It seems Composite Products is what I’m looking for, but I’m unsure of the pro’s and cons of going with Somewherewarms Composite Products ($79) or YITHEMES Composite Products ($64).

    Anyone have any experience on the matter?

    Thread Starter nicksoper

    (@nicksoper)

    There’s something in the Composite Product Options. Will investigate further and hopefully get some more ideas 🙂

    I had the same problem when trying to instal via the “add new plugin” feature in the WordPress backend. I ended up downloading the plugin files and uploading them via FTP and then the “Firewall (WAF)” tab shows up under the securiscanner settings pages.

    Hey Bud,

    This step by step should help.

    1. Go to the Admnimize settings page in Settings -> Adminimize
    2. Scroll down to the “Write options – Post” pane. This is the 7th pane when I look at it

      Mini Menu -> About the Plugin -> Backend Options -> Global options -> Dashboard option -> Menu Options -> Write options – Post

    3. Then find the 23rd item down in the “Write options – Post” pane called Excerpt (#postexcerpt, #postexcerptdiv, th.column-postexcerpt, td.postexcerpt)

    Then tick the boxes.

    Thread Starter nicksoper

    (@nicksoper)

    Hey Bud,

    You can add descriptions as far as I am aware. I haven’t taken the time to pick apart your array and loop though.

    The documentation is here: http://codex.ww.wp.xz.cn/Function_Reference/wp_insert_term

    You add the description along with the wp insert terms array

    wp_insert_term(
      'Apple', // the term
      'product', // the taxonomy
      array(
        'description'=> 'A yummy apple.',
        'slug' => 'apple',
        'parent'=> $parent_term_id
      )

    So in real terms that would like like
    wp_insert_term('Arts and Entertainment', 'place-types', array('enter the description here','arts-and-entertainment','if there is a parent id, you would put it in here'));

    I hope that helps mate.

    Thread Starter nicksoper

    (@nicksoper)

    PS. I used variables so I didn’t need to re-write the actual parent element each time, I could reuse the same code.

    Then it’s worth mentioning I was trying to replicate, to some extent, foursquares categories. This might add clarity to what I was trying.

    Thread Starter nicksoper

    (@nicksoper)

    This was the code I was playing around with. I included an option that is set after this is run, and then wrapped it in an if statement to check if the option was set or not. Running this more than once seemed to give some issues.

    wp_insert_term('Arts and Entertainment', 'place-types', array('','arts-and-entertainment',''));
    		$parent_term = term_exists( 'arts-and-entertainment', 'place-types' );
    		$parent_term_id = $parent_term['term_id'];
    		wp_insert_term('Arcades', 'place-types', array('slug' => 'arcades','parent'=> $parent_term_id));;
    		wp_insert_term('Art Galleries', 'place-types', array('slug' => 'art-galleries','parent'=> $parent_term_id));
    
    	wp_insert_term('Food', 'place-types', array('slug' => 'food'));
    		$parent_term = term_exists( 'food', 'place-types' );
    		$parent_term_id = $parent_term['term_id'];
    		wp_insert_term('African Restaurants', 'place-types', array('slug' => 'african-restaurants','parent'=> $parent_term_id));;
    
    	wp_insert_term('Nightlife', 'place-types', array('slug' => 'nightlife'));
    	wp_insert_term('Shops', 'place-types', array('slug' => 'shops'));
    	wp_insert_term('The Great Outdoors', 'place-types', array('slug' => 'outdoors'));
    	wp_insert_term('Travel Spots', 'place-types', array('slug' => 'travel-spots'));

    I personally wouldn’t recommend doing it this way, I feel a pre-populated mysql dump would be better.

    I just got this email about this thread and thought I’d post my reply here, just incase it helps:

    How did you change the link for FAQs in the sidebar to link back to your FAQs index page and not list all of the individual FAQ posts?

    The page is using a template file with the above code in it. My sidebar.php is using wp_list_categories() which is pretty much default and I haven’t really done anything in there.

    Here is the solution:
    If you put a file in your theme folder called category-ID.php where ID is the ID of the category you want to have a custom template for that specific category.

    Here is the link to the documentation explaining this functionality: http://codex.ww.wp.xz.cn/Category_Templates#What_Template_File_is_Used.3F

    So in my case, FAQ’s is category 7, so I made a new file called category-7.php and put my code (above) in that file.

    So when you are in category 7, that template page will show.

    (You can use the category slug, or name instead of the ID, but I’d recommend using the ID incase you end up changing the name or slug of your category, or if you end up using qTranslate or something like that)

    Hope that helps.

    Hi HomesteadMommy

    I actually figured this one out on friday for a site of mine, where I wanted to list FAQ’s by sub category – http://www.fluxsites.com/articles/faqs/

    I am not sure if it is the most graceful way to do it (loop in a loop) but it works and is fairly easy to understand – well if I can understand the code it must be fairly trivial.

    Here is my solution if anyone wants to check it out. You could change “child_of=7” to your “Recipes” category id or remove it all together if there are no other categories, I would make recipes a sub category though, in case you want to add other categories, like news..

    <? 
    
    /* FIRST LOOP THROUGH THE CATEGORIES */			
    
    $categories=get_categories('child_of=7'); //outputs an array of child categories of category 7
    
    foreach($categories as $category) { ?>
    
    <?php $current_cat = $category->term_id; ?>
    
    <h2><a href="<?php echo get_category_link($current_cat); ?>" title="<?php sprintf( __( "View all posts in %s" ), $category->name ) ?>"><?php echo $category->name ?></a></h2>
    
    <?php 
    
    /* SECOND LOOP THROUGH THE POSTS IN THE CATEGORY WHILST IN THE FIRST LOOP */ 					
    
    $cat_post = new WP_Query('cat='.$current_cat); ?>
    
    <ul>
    <?php
    while ($cat_post->have_posts()) : $cat_post->the_post();
    $do_not_duplicate = $post->ID;
    $preview = get_post_meta($post->ID, 'preview', true);
    ?>
    
    <li><a href="<?php the_permalink(); ?>" title="Peralink to FAQ: <?php the_title(); ?>"><?php the_title(); ?></a></li>
    
    <?php endwhile; ?>
    
    </ul>
    
    <?php  } ?>

    I don’t think it would be too difficult to include a thumb or excerpt too…

    You would add that in this line, I think you could also use the normal code (the_excerpt), but I can’t say for sure as I haven’t tried.

    <li><a href="<?php the_permalink(); ?>" title="Peralink to FAQ: <?php the_title(); ?>"><?php the_title(); ?></a></li>

    Good luck

    Thread Starter nicksoper

    (@nicksoper)

    I actually figured this one out, but when I tried to post the solution I got the BB Press error page.

    Here is my solution if anyone wants to check it out. You could change “child_of=7” or remove it all together to suit your needs.

    <? 
    
    /* FIRST LOOP THROUGH THE CATEGORIES */			
    
    $categories=get_categories('child_of=7'); //outputs an array of child categories of category 7
    
    foreach($categories as $category) { ?>
    
    <?php $current_cat = $category->term_id; ?>
    
    <h2><a href="<?php echo get_category_link($current_cat); ?>" title="<?php sprintf( __( "View all posts in %s" ), $category->name ) ?>"><?php echo $category->name ?></a></h2>
    
    <?php 
    
    /* SECOND LOOP THROUGH THE POSTS IN THE CATEGORY WHILST IN THE FIRST LOOP */ 					
    
    $cat_post = new WP_Query('cat='.$current_cat); ?>
    
    <ul>
    <?php
    while ($cat_post->have_posts()) : $cat_post->the_post();
    $do_not_duplicate = $post->ID;
    $preview = get_post_meta($post->ID, 'preview', true);
    ?>
    
    <li><a href="<?php the_permalink(); ?>" title="Peralink to FAQ: <?php the_title(); ?>"><?php the_title(); ?></a></li>
    
    <?php endwhile; ?>
    
    </ul>
    
    <?php  } ?>

    Lez-behonest Press – quite a comical username there.

    I just did a site, and the deadline was so tight and there was no budget to do more browser testing and tweaks for IE6. So rather than having a half hearted attempt, I just put a message up there for IE6 users letting them know that the IE6 version is on the way, but if they want to see it now, they should upgrade their browser.

    I didn’t use the plugin, but nice little idea.

    I asked a good friend of mine who I did my degree with, who is pretty knowledgeable about plugins, about caching worpdress and he suggested wp-super cache over the regular wp-cache.

    He also mentioned that caching can cause it’s own set of problems.

    So, there is some completely un-researched, un-solicited feedback and most likely un-helpful. It gives you something to read though 🙂

    Forum: Plugins
    In reply to: Subscribe or Follow a post
    Thread Starter nicksoper

    (@nicksoper)

    I suppose another simpler way to put it:

    If you add a calendar entry (through plugin/category), I’d like people to be able to “attend” the event. This would be recorded by email or if the user is logged in.

    Any ideas of a suitable plugin or method?

Viewing 15 replies - 1 through 15 (of 23 total)