juliageek
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Archive and selected post on same 2 col pageJust for info, I have managed to do this. In case anyone’s interested, here it is, so the left col displays the list of posts with excerpts, the right col shows the selected post.
I made this single.php in my theme. NB I used the guerilla_excerpt plugin.<?php get_header(); ?> <div id="main"> <div id="archivecol"> <!-- this displays the archive --> <?php $myposts = get_posts('numberposts=-1&offset=$debut'); foreach($myposts as $post) : ?> <!--this next bit of code allows a different display for the excerpt for the current post in the postcol div --> <div<?php if ( $post->ID == $wp_query->post->ID ) { echo ' class="xcurrent"'; } else {} ?>> <?php the_time('F j, Y'); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php guerrilla_excerpt('40','... more','none','span','no'); ?> </div> <?php endforeach; ?> </div><!-- end of archivecol --> <div id="postcol"> <!-- this displays the current post --> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <p class="entry-title"><?php the_title(); ?></p> <?php the_time('F j, Y'); ?> <?php the_content(); ?> </article> <?php endwhile; // end of the loop. ?> </div><!-- end of postcol --> </div><!-- end of main -->Forum: Fixing WordPress
In reply to: wp_get_archives and Conditional TagsHi
I can’t get this to work – am I right in putting it into wp-includes/functions.php? Is there a correct place to put it?
ThanksForum: Plugins
In reply to: search unleashed – post-page function causes errorI get this too. I can’t get search unleashed to work with wp ecommerce, probably because of this error. Can anyone help. This is the section of code that the error points to as having a call to a member function on a non-object:
if(preg_match("/\[productspage\]/",$content)) { $wpsc_query->get_products(); $GLOBALS['nzshpcrt_activateshpcrt'] = true; ob_start(); if(wpsc_is_single_product()) { include($cur_wpsc_theme_folder."/single_product.php"); } else {Is it a problem with the wp-e-commerce code or is it search unleashed not liking something?
Forum: Fixing WordPress
In reply to: need a foolproof way of making a list of peoplesorry, and I meant my friend will be changing content from time to time and adding new people, not changing or adding fields.
Forum: Fixing WordPress
In reply to: need a foolproof way of making a list of peopleThanks for the speedy response.
So I could make the user profiles show on the site…I’ll look into that. (The names in question aren’t actually users, but associate artists, but of course I didn’t think out of the box like that).Yes, I can dynamically create the divs or tables, I was just thinking that it’s a sure way of busting a page if you leave them in place for an editor to work with directly on the page edit area.
Thank you for this.
Forum: Fixing WordPress
In reply to: Need help with SubPage to be linked in two placesHiya.
You need this plugin:
Improved Include Pagethen all you do is the following:
Say you have created a page with an ID of 6 called “cottage” with a parent A, and you want that same page to appear on another place as well with parent B, you just make a new page called “cottage” under parent B and instead of putting content in, you use the following shortcode:
[include-page id=”6″]
So then if you update the content on the original page, it is updated on the new one as well.Forum: Fixing WordPress
In reply to: No email notification – registration or commentsHi Ollie
Can you please tell me which lines you replaced in the pluggable.php file? – in 2.8?
Thanks – I’m having the exact same problem
JuliaForum: Fixing WordPress
In reply to: Yapb and coolirisI mean YAPB, not YAPG, sorry.
Forum: Fixing WordPress
In reply to: Fetch links from custom fieldI think this is the answer to your question?
I have got this, so only if I assign a url to a custom field called “alamy” does the whole thing show up:
<?php if(get_post_meta($post->ID, "alamy", true)): { ?> <?php $field_name="alamy"; $field_value = get_post_meta($post->ID, $field_name, true); ?> <a href="<?php echo $field_value; ?>" target="_blank">Buy this image at Alamy</a> <?php ; } endif ?>It seems to work. Thanks for the solution in this post. It saved me a whole afternoon. Or it would have if I’d found it earlier!
Forum: Fixing WordPress
In reply to: 404 Page doesn’t resolve, just shows code from my sidenavHi
Did you get any joy from fasthosts? I’ve got the exact same problem here.
ThanksJulia
Forum: Fixing WordPress
In reply to: Excerpt vs. More Tag: What is Best in this ScenarioHi
I’m bumping this and wondering if anyone has come up with a solution to keeping the “Read More” within the closing p tag of the excerpt.I want to use the_excerpt instead of the_content because it is more flexible – some posts don’t always start in a sexy enough way, and I’d like to pick the most exciting sentence or two. However, I’d like the read more link to follow on in the same way it does with the_content.
I’m also a little interested as to why you can’t customise the read more for the_excerpt like you can with the_content? I would have thought this was an obviously attractive function? What’s the thinking behind it?
I suppose the other option is to tell the post writers to make the opening para really tasty…
Forum: Fixing WordPress
In reply to: How do I list posts in certain categories on related pages?Hi
Sorry it took so long to get back – I don’t usually get questions on my posts. It feels like I’ve sort of graduated!
I put this in the sidebar.php file of the theme I was using (found in wp-content/themes/yourtheme/. If you’ve not messed around at that level before, do make a backup of the original file first – I learnt the hard way!
Forum: Plugins
In reply to: Advanced Category Excluder – can I edit the sections?Thanks
That sounds way, way over my head!
I’ve worked around the problem by putting stuff in the templates.Forum: Fixing WordPress
In reply to: Trying to add a subscribe button to the sidebarHi
If you’re still interested, I found out what the mystery is. I was trying to do the same thing.The link where you got the original code linking to the image uses curly quotes that are misplaced. They seemed to be immune even to putting through textedit plain text, which is what I always do when editing code.
If you look at your quote on the first post, you will see you still have them in your html. I did the same thing and got no image. You need to rewrite the quotes around the image using straight quotes. It works!
Forum: Fixing WordPress
In reply to: How do I add active class to grandparent category of a single post?And, I tried adding the ‘grandparent category’ to the categories associated with the post, but, because it only gives an active class the a tag I don’t seem to be able to affect the ul below to make it display as a block. Is this right?