Peter Hardy-vanDoorn
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Slideshow in a fancybox,lightbox,shadowboxThe simplest option is to just insert the images into your post/page at the thumbnail size with the link set to the image’s URL. Or you could look at WordPress’ Gallery function.
Then, for displaying the images in a lightbox fashion, the Easy Fancybox plugin works a treat for me.
Forum: Plugins
In reply to: [Plugin: SEO Ultimate] {excerpt::autogen} not workingJust updated to the very latest version and still not working.
Does anyone from SEO Ultimate read these?
Forum: Fixing WordPress
In reply to: How to change the footer background color?On line 1221 of your style.css file, you need to add this:
background-color: red;
(obviously, replace
red
with whatever colour you want!)Hope that helps
Peter
Forum: Fixing WordPress
In reply to: I have a problem with the Permalink Settings.Not sure if this is the answer, but you shouldn’t have any spaces in the code.
You’ve got:
/% category% /% postname% /
It should be:
/%category%/%postname%/
Forum: Fixing WordPress
In reply to: Dynamically populating a single page. Is this posssible in WP?Hi
I see what you’re thinking, but the problem with your approach is how do you tell WordPress about your products and which brands they are associated with?
The reason why I suggested individual posts for each product is that you can easily use tags or categories to do this. If you really fancy getting your hands dirty you could even go as far as using custom taxonomies.
Of course, you could always look at using a plug-in like wp-ecommerce. It is a fully-functioned e-commerce shopping system, but you can apparently turn off the shopping cart and just use it as a gallery. You’d still have to make a post for each product, but it will handle all of the heavy lifting for you.
Hope that helps
Peter
The Permalink code should be
/%category%/
– you appear to have missed the 2nd%
.When you registered your Custom Post Types, did you remember to set rewrite to true? WordPress won’t use nice URLs for your CPTs unless you do!
Hope that helps
peter
First, don’t use custom fields to set your category – just use WordPress’ built-in categories.
Then, in your page’s PHP file, you can target the Loop so that it only displays posts with that particular category using:
query_posts('category_name=cooking')
Hope that helps
Peter
Forum: Fixing WordPress
In reply to: Dynamically populating a single page. Is this posssible in WP?What you are asking is perfectly possible and very easy for an experienced WordPress-wrangler. However, it is far too complicated to explain in any detail in a simple forum post.
But, to summarise, what you need to do is:
- Create a Custom Post Type for your products (one type, perhaps called Products, will do) (install a plugin to do this)
- Create a Products post for each of your products, with Custom Fields to hold (1) the link to the product image and (2) the link to the PDF.
- Take your theme’s
pages.php
file and rename it topages-products.php
- Edit The Loop to pull in only the Products posts (eg.
query("post_type=products&post_status=publish")
) - Call in the Custom Fields using (eg)
<?php echo get_post_meta($post->ID, "productimage", true); ?>
I have tried to keep this to general principles, but as you can see it was starting to get very specific. If you are not experienced in WordPress it might be worth you finding someone who is.
Hope that points you in the right direction.
Best of luck
Peter
Forum: Fixing WordPress
In reply to: Getting categories to list as a child of a page in URL structureAnyone?
Hi guys.
Not sure if this is a complete answer for you both, but should certainly answer adam’s no. 2 and emandel’s question:
I have custom post types and use the Permalink structure of:
/%category%/%postname%/
which gives me the custom post type in the URL as you both require.Hope that helps
peter