c-m
Forum Replies Created
-
Yes it must be the same for everyone using this plugin.
Hopefully the developer will respond when he/she gets a chance.
Forum: Themes and Templates
In reply to: Calling an image from the theme directoryThat works a treat. Thanks very much.
I didn’t see that in the codex.
Forum: Fixing WordPress
In reply to: Modify loop in template to sort by ASCAh excellent. Thank you.
Forum: Fixing WordPress
In reply to: Modify loop in template to sort by ASCYes that works well thanks very much.
What does the if !is_admin part do? It looks like it checks if the dashboard or admin panel is being show. Not sure how that affects things.
Forum: Fixing WordPress
In reply to: Modify loop in template to sort by ASCYeah I thought it went in functions.php 😉
I only want it to affect children of category 67. The codex doesn’t go into that detail. I do really need to learn more but it’s slow going.
Forum: Plugins
In reply to: [Categories Images] How do I call the category image?At the moment, using the code above, the thumbnail from first post in the category is being pulled in and used as the parallax background for that (sub)category.
I don’t want that. I want the actual category image to show.
Somehow the code I posted above needs to amended to incorporate z_taxonomy_image_url instead of get_post_thumbnail_id but I haven’t a clue how to go about that. 🙁
I presume the plugin developer checks this this forum when he can.
I did try leaving a comment for him on his website, but his site has an issue.
Forum: Fixing WordPress
In reply to: Modify loop in template to sort by ASCSo get rid of the loop in my specific category template:
<?php while ( have_posts() ) : the_post() ?> ... <?php endwhile; ?>and instead add the following in it’s place?
<?php function category_archive_sort_posts($query) { if ( !is_admin() && $query->is_main_query() ) { if ( $query->is_category ) { $query->set( 'order', 'ASC' ); } } } ?> add_action('pre_get_posts','category_archive_sort_posts');Forum: Plugins
In reply to: [Categories Images] Displaying sub-category imagesI’ve made some progress with this using:
<?php $args = array('child_of' => 67); $categories = get_categories( $args ); foreach($categories as $cat) { echo '<li>'; echo '<img src="' . z_taxonomy_image_url($cat->term_id). '"/>'; echo '<div class="post-details-wrapper">'; echo '<h3><a href="' . get_category_link($cat->term_id) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $cat->cat_name.'</a> </h3> '; echo '<p>'. $cat->description . '</p>'; echo '</div>'; echo '</li>'; } ?>It probably needs tidying up though, and I need to somehow resize the images.
Forum: Fixing WordPress
In reply to: Display posts from specific categoryThanks very much. Just the same as a normal loop. I should have clocked that.
Forum: Fixing WordPress
In reply to: Display posts from specific categoryI’m building one from scratch, and it’s category.php I’m working.
I’ve got most things down, I just can’t seem to understand the loop for categories.
I’m also trying to do a slight variation on this, where I display the sub categories of a main category, rather than the posts.
I think that is where I’m getting confused.
Forum: Fixing WordPress
In reply to: Display posts from specific categoryI don’t want to specify the category though. I want only to show the posts of the category that’s been clicked on.
At the moment I’ve got
<ul> <?php $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); foreach($categories as $category) { echo '<li>'; echo '<div class="post-details-wrapper">'; echo '<h3><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </h3> '; echo '<p>'. $category->description . '</p>'; echo '</div>'; echo '</li>'; } ?> </ul>But that just lists all categories, not list the posts within the selected category.
Has anyone got this to work? What a farce.
I’ve entered my page id exactly as it is in the page settings. I’ve entered the exact page url, but still nothing.
This is my facebook page – http://www.facebook.com/pages/Defylife-Adventure/567022110033142
Forum: Themes and Templates
In reply to: WordPress 2014 feature imageIt’sjust not working for me.
I’ve added the code below to my functions.
add_image_size( 'featured', 1024, 350, true );That should give me an image size of 1024px by 350px.
In my template I’m calling:
<?php // check if the post has a Post Thumbnail assigned to it. if ( has_post_thumbnail() ) { the_post_thumbnail('featured'); } ?>The result is an image that is 333px wide. It just doesn’t seem to make any sense.
Forum: Themes and Templates
In reply to: WordPress 2014 feature imageIt’s the default wordpress 2014 theme as shown here:
http://twentyfourteendemo.wordpress.com/2012/02/13/cu-vide-albucius-euripidis-pri/
In the demo above the actual featured image used has been pre-cropped to the exact dimensions, so it’s not really a good example.
If you have a site running the 2014 theme and you upload a featured image say that’s 1000px heigh, the theme will automatically crop the image to height 372.
On my site running a custom theme styled to look a bit like 2014, I can’t or don’t know how to replicate this automatic cropping of the featured image. http://defylife.co.uk/equipment/winter-tyre-review-heidenau-k60-silica/
Forum: Plugins
In reply to: [New Nine Adaptive Images] How do I know if it's working?Surely you should be able to see it working from your normal browser.
If my images are scaled in the browser then it’s not working.
Take a look at http://defylife.co.uk/equipment/winter-tyre-review-heidenau-k60-silica/
I’ve purposely uploaded massive images to test with. These images are being scaled in the browser which shows that the plugin isn’t doing it’s job.