stoiko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: List custom taxonomy with hierarchyWhat I meant was that it can display them not like this:
Category
Subcategorybut like this:
Category
-Subcategoryor something similar.
Forum: Plugins
In reply to: [WP Query Search Filter] Sort alphabetically?1. What criterias can I use to sort? I mean you got to be able to put something in the Sorting Meta Key field.
2. You say that the default sort is by date. Can I change wordpress’ default sort to title and if I do, will this also change the extension’s settings?Thanks for the feedback.
Forum: Plugins
In reply to: Show custom posts inside a category?Is it so hard to answer?
Forum: Plugins
In reply to: [WP Query Search Filter] Sort alphabetically?Well using what can you sort? So basically there is no way I can sort the posts alphabetically?
Forum: Fixing WordPress
In reply to: Image captionI used other css caption and it worked!
Forum: Fixing WordPress
In reply to: Articles per pageYes, this is it. Thanks.
Forum: Fixing WordPress
In reply to: Image caption<?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>"> <?php echo inkthemes_main_image(); ?> </a></a> <?php endwhile; ?>
Themia Lite, inkthemes main image is a function that calls the posts’s main image.
function inkthemes_main_image() { global $post, $posts; //This is required to set to Null $id = ''; $the_title = ''; // Till Here $permalink = get_permalink($id); $homeLink = get_template_directory_uri(); $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); if (isset($matches [1] [0])) { $first_img = $matches [1] [0]; } if (empty($first_img)) { //Defines a default image } else { print "<a href='$permalink'><img src='$first_img' width='140px' height='208px' class='postimg wp-post-image' alt='$the_title' /></a>"; }
Forum: Fixing WordPress
In reply to: Show only thumbnails in a grid view on WP Search Results PageI really need this, can you give me the working code, but using main image, not thumbnail?