Contact Lindsey Di Napoli

x Cancel
posted 12 months ago

Show an unlimited list of linked titles within a term from a custom post type's taxonomy

                <?php query_posts( array( 'post_type' => 'videos', 'video_type' => 'Comedies', 'posts_per_page' => '9999999', 'orderby' => 'title', 'order' => ASC ) ); ?>
    		<?php if( is_tax() ) {
   				 global $wp_query;
    			$term = $wp_query->get_queried_object();
				}  
			?>
			<ul class="video-list">
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

			<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>

			<?php endwhile; else: ?>
			<?php endif; wp_reset_query(); ?>
			</ul>                
Raw

This is a little snip of code that will let you query posts within a custom post type's taxonomy and show just a list of titles from one of the terms you add to your taxonomy.

In this example I created a new custom post type of "Videos". I attached the taxonomy of "Video Type" to this custom post type, from within "Video Type" we can then drill down and query a specific term within the taxonomy, in this example "Comedies".

What displays is a standard unordered list, in alphabetical order by title with the linked titles to the posts. If you want to get fancier you can display thumbnails, excerpts, etc.

posted 1 year ago

WordPress WP-Ecommerce Plugin - Variations Issues?

Hi,

I'm using the most recent version of WP Ecommerce (getshopped.org) with the latest WordPress, and I want to do two things:

1) Show the variation of the product when you view the cart or are checking out in the same table as the product name, quantity, price, etc

2) Make the variation selection required before you add it to the cart. Currently it will add the item to cart no matter what. :(

Can anyone familiar with WP Ecommerce help out? Thanks! -Lindsey

posted 2 years ago

Adding custom auto-generated next/prev links to WordPress?

Hello!

(I also posted this on the WordPress support forums - but sometimes a complicated question can take weeks to be answered - so I figured I would try here too)

I'm currently working on a single page site where we are going to have a "News" section that is horizontally scrollable. What I have now is the main page, which displays a listing of the 3 most recent posts. Clicking on the link moves the page to the left and the post chosen replaces the main listing of posts.

What I want to do is add next and previous links to the single post.

I can't use next_post()/prev_post() since it's generates the single page permalink - and in this case we have all of our content on one page.

So what I want to do is control the next and previous links and have them link to the post using the post id like so: href="#post-34" instead of href="mysite.com/post-34"

Also, it will need to work within a custom query - you can view the code controlling the sections here:

pastebin.com/…

If anyone could help me work some php magic on this I would appreciate it greatly.

With the help of alexmagill I found a solution which you can view here:

pastebin.com/…

I'm going to leave this open just in case anyone has any other questions or comments!

posted 2 years ago

Find and replace via jQuery?

I want to have jQuery search my page on load, find a certain word within a class or id, and I want to have that certain word hidden.

For example, I have the following HTML output:

<div class="nameOfDiv">
    <p><strong>Categories</strong>: Events, Color, Day, Time, Pigs, Purple</p>
</div>
Raw

To be noted: I don't have control of the list contents (no ability to add a class or id around this one word to begin with- otherwise I wouldn't really have this issue!) or the order of the list ("Events" might show up first, it might show up 5th, last, etc).

So, I want to have the ability to search within "nameOfDiv", find the word "Events" inside of it and if it is there hide/remove/replace it with a blank. (I'd be equally happy to add a span with a class of "hideMe" around it... (where I can set it to display:none in the CSS).

Can this be done? If it can be done with something other than jQuery I am willing to try that as well!

posted 2 years ago

MyBookClub - Book Club PSD Template

2 free PSD templates for a book club or book review template for personal use. Currently in development as a WordPress theme :D

2 free PSD templates for a book club or book review template for personal use. Currently in development as a WordPress theme :D

posted 2 years ago

WeContract

Working on a new WordPress theme aimed at carpentars/contractors/DIY/home improvement lovers. First design draft. Icons are from http://pixelca.com/worn-paper.html

Working on a new WordPress theme aimed at carpentars/contractors/DIY/home improvement lovers. First design draft. Icons are from pixelca.com/…

posted 2 years ago

Happy Holidays!

Happy Holidays ALL!

Happy Holidays ALL!

posted 2 years ago

Untitled

Reconfigured the design a bit, and I'm almost satisified. Like I said this is going to be just a general theme for WordPress, that will be customizable.

Reconfigured the design a bit, and I'm almost satisified. Like I said this is going to be just a general theme for WordPress, that will be customizable.

posted 2 years ago

Untitled

Working on a new WordPress theme... right sidebar needs work

Working on a new WordPress theme... right sidebar needs work

posted 3 years ago

Untitled

The single/inside page design of CSSgirl.

I added a bottom border for the recent post links in the right col. I think that looks a bit better :D

The single/inside page design of CSSgirl.

I added a bottom border for the recent post links in the right col. I think that looks a bit better :D