Jump to content

Search the Community

Showing results for tags 'category'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 3 results

  1. How do I create excerpt for both Category and Tag?
  2. Hello W3S, it's been a while since i've posted something in here , mostly coz of my studies -.-'. Anyways, i've had some time off.. a week to be more exacly, so i was looking back at one of my projects, and i need some help yet again with some of my coding. I have tried building a category list with a sub-category in it. And it works great! Only problem is that i only want each sub-category item to show under each category item when clicked on the individually item.. if you get what i mean Oo... I could make a drop-down menu from one of my latest project, but i dont wont that and either does the customer... here is my code for the category AND sub-category list: echo left_box_start("Server Category List"); // SCL = SERVER CATEGORY LIST $scl_query = "SELECT ".sqlesc('id').", ".sqlesc('name')." FROM scl"; $scl_result = mysql_query($scl_query)or sqlerr(__FILE__, __LINE__); echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>n"; //Checking to see if there is any rows to take... if(mysql_num_rows($scl_result) < (int)0) { echo "ttttttt<tr>"; //echo "<td colspan='2'>"; echo "<td>"; echo "No Server Category Added Yet"; echo "</td>"; echo "</tr>"; } else { while ($scl_row = mysql_fetch_array($scl_result, MYSQL_ASSOC)) { echo "ttttttt<tr>"; echo "<td align='left' width='15px'>"; echo "->"; echo "</td>"; echo "<td align='left'>"; echo "<a href='webshop.php?scl_ID=" . (int)$scl_row['id']."'>"; echo $scl_row['name']; echo "</a>"; echo "</td>"; echo "</tr>n"; // SSCL = SUB SERVER CATEGORY LIST $sscl_query = "SELECT ".sqlesc('id').", ".sqlesc('name')." FROM sscl WHERE FK_scl_ID = " . (int)$scl_row['id']; //$sscl_query = "SELECT * FROM sscl WHERE FK_scl_ID = " . (int)$scl_ID; $sscl_result = mysql_query($sscl_query)or sqlerr(__FILE__, __LINE__); //Checking to see if there is any rows to take... if(mysql_num_rows($sscl_result) > (int)0) { //$sscl_row = mysql_fetch_array($sscl_result, MYSQL_ASSOC); while ($sscl_row = mysql_fetch_array($sscl_result, MYSQL_ASSOC)) { echo "<tr bgcolor='#999999'>"; echo "<td align='left' width='25px'>"; echo "-> ->"; echo "</td>"; echo "<td align='left'>"; echo "<a href='webshop.php?scl_ID=".(int)$sscl_row['id']."&sscl_ID=".(int)$sscl_row['id']."'>"; echo $sscl_row['name']; echo "</a>"; echo "</td>"; echo "</tr>"; } } // SSCL = SUB SERVER CATEGORY LIST //$sscl_query = "SELECT ".sqlesc('id').", ".sqlesc('name')." FROM sscl WHERE FK_scl_ID = " . (int)$scl_row['id']; $sscl_query = "SELECT ".sqlesc('id').", ".sqlesc('name')." FROM sscl WHERE FK_scl_ID = " . (int)$scl_ID; $sscl_result = mysql_query($sscl_query)or sqlerr(__FILE__, __LINE__); //Checking to see if there is any rows to take... if(mysql_num_rows($sscl_result) > (int)0) { $sscl_row = mysql_fetch_array($sscl_result, MYSQL_ASSOC); echo "<tr bgcolor='#999999'>"; echo "<td align='left' width='25px'>"; echo "-> ->"; echo "</td>"; echo "<td align='left'>"; echo "<a href='webshop.php?scl_ID=".(int)$scl_row['id']."&sscl_ID=".(int)$sscl_row['id']."'>"; echo $sscl_row['name']; echo "</a>"; echo "</td>"; echo "</tr>"; } } } echo "tttttt</table>"; echo left_box_end(); Any ideas/fixes would be awsome, or suggestions, also good... thanks if/why you would take a look at this and tell me where i am wrong x). What i've been trying is with the ID from category list & with the $_GET ID from category list, same result each damn time -.-'. Hope you dudes have a solution where i dont -.-'... -rootKID
  3. dear forum, i have two category logos as you can see here and in the attachment:http://quop.eu is it possible to get them in a row or do i need to do this in css?like this (attachment 2). here is the code of the page: <?php/*** Homepage Features Panel*/ /** * The Variables * * Setup default variables, overriding them if the "Theme Options" have been saved. */ global $woocommerce; $settings = array( 'thumb_w' => 100, 'thumb_h' => 100, 'thumb_align' => 'alignleft', 'shop_area' => 'false', 'shop_area_entries' => 3, 'shop_area_title' => '', 'shop_area_message' => '', 'shop_area_link_text' => 'View all our products', ); $settings = woo_get_dynamic_values( $settings ); ?> <section id="shop-home" class="home-section fix"> <header class="block"> <h1><?php echo stripslashes($settings['shop_area_title'] ); ?></h1> <p><?php echo stripslashes($settings['shop_area_message'] ); ?></p> <a class="more" href="<?php echo get_post_type_archive_link('product'); ?>" title="<?php _e( 'View all our products', 'woothemes' ); ?>"><?php echo $settings['shop_area_link_text']; ?></a> </header> <ul class="recent products"> <?php echo do_shortcode('[product_categories ids="140,15" columns="1"]'); ?> <?php $number_of_products = $settings['shop_area_entries']; $args = array( 'post_type' => 'product', 'posts_per_page' => $number_of_products, 'meta_key' => '_featured', 'meta_value' => 'yes' ); $first_or_last = 'first'; $loop = new WP_Query( $args ); $count = 0; while ( $loop->have_posts() ) : $loop->the_post(); $_product = &new woocommerce_product( $loop->post->ID ); $count++; ?> <li class="product <?php if ( $count % 3 == 0 ) { echo 'last'; } ?>"> <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"> <div class="img-wrap"> <?php woocommerce_show_product_sale_flash( $post, $_product ); ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_thumbnail'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?> </div> </a> <h3><a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <span class="price"><?php echo $_product->get_price_html(); ?></span> <?php woocommerce_template_loop_add_to_cart( $loop->post, $_product ); ?> <div class="fix"></div> </li> <?php if ( $count % 3 == 0 ) { echo '<li class="fix clear"></li>'; } ?> <?php endwhile; ?> </ul><!--/ul.recent--> </section> <?php wp_reset_query(); ?>
×
×
  • Create New...