vidanov
Forum Replies Created
-
I found the error. Sorry, it was my fault. I will correct it soon.
http://smartmediapro.com/blog/tips-and-guides/wordpress-error-plugin-does-not-have-a-valid-header/Forum: Plugins
In reply to: [Gallery-Extended] [Plugin: Gallery-Extended] doesnt seem to work for meI see 6 of them in the gallery. It should be ok.
Forum: Plugins
In reply to: how to limit gallery shortcode images for front pageI released new version 1.1 where you can set up a default mode for links in gallery. It acts like wordpress gallery by default. And you can have always linked to attachment and to file if you want to (like me).
>> One have to go to the template to do that.
Yes. But you know. Such feature is very special and somebody needs it, somebody does not. It is also different in different templates. I think the best solution here – to make changes in the template.Forum: Plugins
In reply to: how to limit gallery shortcode images for front pageSorry for the wrong tip!
If you can edit theme files, then you can put in the home page php short code execution in the place near the_excerpt or the_content tag you can show the images like this:
<?php echo do_shortcode('[gallery start="1" end="6"]'); ?>I think about, maybe I can integrate some solution in the plugin for you.
Forum: Plugins
In reply to: [Gallery-Extended] [Plugin: Gallery-Extended] Where does my other images showThank you very much!
Forum: Plugins
In reply to: how to limit gallery shortcode images for front pageIf I understood correctly, you can do it like this:
put in the post excerpt [gallery link=file start=1 end=6]
and put in the post itself [gallery link=file]If your theme shows post excerpt on the home page, it will show only 6 images there and all of them on your post page.
Forum: Themes and Templates
In reply to: Adding a class to first and last menu itemsFor pages (wp_list_pages) first-page-item and last-page-item class:
Put the following code in the functions.php of your theme
function add_markup_pages($output) { $output= preg_replace('/page-item/', ' first-page-item page-item', $output, 1); $output=substr_replace($output, " last-page-item page-item", strripos($output, "page-item"), strlen("page-item")); return $output; } add_filter('wp_list_pages', 'add_markup_pages');And the same for the categories (wp_list_categories) first-cat-item and last-cat-item
function add_markup_categories($output) { $output= preg_replace('/cat-item/', ' first-cat-item cat-item', $output, 1); $output=substr_replace($output, " last-cat-item cat-item", strripos($output, "cat-item"), strlen("cat-item")); return $output; } add_filter('wp_list_categories', 'add_markup_categories');