Michael Fields
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: A-Z index list of tagsThis does exactly what you asked for. Just copy the code into a new file and save it as “t-tags.php” in your current themes directory. You will then need to log into WordPress, create a new page and apply the “Tags” Template to it. You may also need to change the html under “OUTPUT” to match your theme. Please don’t change anything under “Process” unless it makes sense to you 🙂
<?php /* Template Name: Tags */ /* Process ================================================= */ $list = ''; $tags = get_terms( 'post_tag' ); $groups = array(); if( $tags && is_array( $tags ) ) { foreach( $tags as $tag ) { $first_letter = strtoupper( $tag->name[0] ); $groups[ $first_letter ][] = $tag; } if( !empty( $groups ) ) { foreach( $groups as $letter => $tags ) { $list .= "\n\t" . '<h2>' . apply_filters( 'the_title', $letter ) . '</h2>'; $list .= "\n\t" . '<ul>'; foreach( $tags as $tag ) { $url = attribute_escape( get_tag_link( $tag->term_id ) ); $count = intval( $tag->count ); $name = apply_filters( 'the_title', $tag->name ); $list .= "\n\t\t" . '<li><a href="' . $url . '">' . $name . '</a> (' . $count . ')</li>'; } $list .= "\n\t" . '</li>'; } } }else $list .= "\n\t" . '<p>Sorry, but no tags were found</p>'; /* OUTPUT ============================= */ get_header(); ?> <div id="container"> <div id="main"> <?php print $list; ?> </div> </div><!-- end main --> <?php get_sidebar(); get_footer(); ?>Forum: Your WordPress
In reply to: WordPress being used as CMS – comments and feedbacksNo problem!
The Projects Tab actually is a user-uploaded picture and user controls all the things… It is weird that I cant control it … as when user uploads a picture, the link is automatically attached with it 🙁
Looks to me like the images are being uploaded via WordPress:
http://www.ewp.eu/wp-content/uploads/2009/03/erp3.jpg
That looks like a WordPress attachment to me.
What code are you using to generate this on your frontpage? It’s 100% controllable through code.
Forum: Fixing WordPress
In reply to: Dimension of pictures into galleriesThank you so much…
You’re welcome 🙂
Just in case someone needs to know it: the problem happened without lightbox, too
This is due to the fact that the plugin overwrites the code that creates the “gallery shortcode” – As long as you have the plugin installed, you will have to add this attribute to your shortcodes.
One solution would be to hack the plugin. On line 322 of the current version, change this:
'lightboxsize' => 'medium',to this:
'lightboxsize' => 'fullsize',That should fix it globally.
Forum: Your WordPress
In reply to: WordPress being used as CMS – comments and feedbacksReally like the nav – nice work:)
Am noticing a few things that I would correct:
1. When I click the slide-show, I arrive at http://www.ewp.eu/our-vision which serves a 500 error.
2. The thumbnails under the “Projects” heading link to themselves – I believe that your visitors would be better served by linking them to the project which the represent. I, for one, am more likely to click on the picture rather than the heading.
Other than that, great job!
Forum: Fixing WordPress
In reply to: Dimension of pictures into galleriesActually, It’s Lightbox Gallery – a plugin that overrides the default WordPress gallery Shortcode. I peeked at the source and it looks like you can change the behavior by adding the following attribute to your gallery shortcode:
[gallery lightboxsize="fullsize"]Hope this helps,
-MikeForum: Fixing WordPress
In reply to: WordPressWhy not use a text editor + ftp – I guarantee that you will never have this problem 🙂
Forum: Fixing WordPress
In reply to: How to manually generate thumbnails?This sounds awesome!!! Thanks for posting your fix… I’m totally gonna check this out soon as I need to completely need to rework my portfolio.
Forum: Fixing WordPress
In reply to: How do I add thumbnail images in category listing?Here is info on the loop: http://codex.ww.wp.xz.cn/The_Loop
You would add this code somewhere “inside” the loop.
I would create a new category template for this. If your theme has a category.php file, open it and save as category-###.php
The ### part should be the category id of the chub category. This way the special code will only be executed when a visitor is viewing the chub category.
Forum: Fixing WordPress
In reply to: How to manually generate thumbnails?No problem… I really wish something like this was built into WordPress, but I wish there were a lot of things built into WordPress…. Any way, let me know if you have any problems with this…
Forum: Themes and Templates
In reply to: Overriding all other stylesheetsNo problem! glad I could help.
No, There’s no need to insert the image into the post at all, The script will get the first image that was uploaded as an attachment to the given post.
Forum: Fixing WordPress
In reply to: Is this available? http://s-origin.wordpress.com/That looks like the WordPress Default Theme, It come with your download.
I use this code inside the loop:
http://ww.wp.xz.cn/support/topic/282027?replies=2Forum: Themes and Templates
In reply to: Overriding all other stylesheetsThere’s a couple different things that you could do, I would do #1:
1. Modify each plugin to NOT add styles. Styles are usually added via the wp_enqueue_styles() function or by adding an action to the wp_head hook. You can comment out the appropriate lines.
2. In your themes header.php file make sure that your style sheet is linked AFTER the wp-head function. This way all of the custom styles from the plugins will still be printed, but you styleshhet will “have the last word” and you can make modifications but redefining the style in your themes style.css file.
Hope this helps,
-MikeForum: Fixing WordPress
In reply to: How to manually generate thumbnails?I’ve only ever done this once successfully – via .csv – Here is a link to a script that I used: http://mfields.org/_plugins/mf-csv-import.zip
I saved the file to the directory where WordPress is installed and ran it through the browser. This script is VERY resource intensive and I was only able to import about 30 records at a time.
Please note that I’m am only posting this as a reference, the file may or may not work for you, but I hope that it does 🙂