Morten Rand-Hendriksen
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Recent posts list in a custom field?Great! that works exactly the way I wanted it to.
one more question: this code seems to terminate any PHP code coming directly after. In my editor the last ?> is highlighted as an error. I’m assuming I can fix this with some form of conditional statement?
Much appreciated.
Forum: Themes and Templates
In reply to: Recent posts list in a custom field?Yes, we are indeed talking past each other. Here is what I’m trying to do:
I have a custom page template that has three boxes on the bottom that are populated using custom fields. They are called leftBox, centerBox and rightBox. I want to be able to populate them with whatever I want depending on the page in question, so for some pages just text strings, for some images etc.
The problem I’m stuck on is that I want to be able to insert some code in one of one of the custom fields so that it spits out a list of the 5 last posts.
The whole idea is that the contents of each box is defined from within the page and not in the template so that it changes depending on the page. Did that make more sense? it’s a bit hard to describe.
I appreciate your assistance btw. I’ve noticed there are several other posts about the same thing in the forums and none have answers.
Forum: Themes and Templates
In reply to: Recent posts list in a custom field?I’m obviously doing something wrong here.
In my template I have:
<div class="bottomBox"> <?php echo get_post_meta($post->ID, 'leftBox', false); ?> </div>and in the actual custom field I have “leftBox” as the key and the following content which works if I put it in the actual template:
<?php query_posts('showposts=5'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endwhile;?> </ul>obviously the issue is that the php isn’t parsed when it is put in the custom field. so, how do I make it parse properly?
Forum: Fixing WordPress
In reply to: Typograph – Image Caption Centering?@awrosey: To change the alignment of the image captioning all you have to do is edit the p.wp-caption-text style in the stylesheet. You’ll find it on line 185. Just add text-align:center; to it and the text will align to center:
#content p.wp-caption-text {
font-size: 0.8em;
padding-top: 5px;
padding-right: 6px;
padding-left: 6px;
color: #999999;
text-align: center;
}Forum: Themes and Templates
In reply to: Typograph XHTML error assistance@awrosey: When I designed the theme I intended for the search area in the box to replace the search widget in the sidebar. No need for two search boxes, right? If you want to keep both the search area in the drop-down box and in the sidebar you have to make the change suggested by krembo99. If you want it in the sidebar as a widget but not in the drop-down box you can edit it out from the dedicated drop-down php file. It was all set up to give people as many options as possible.
@ecoscope: That script change worked for me too. Thanks a bunch! Maybe Alex should take a look at it as well?
it works for me after adding the following to
wp-content/plugins/nextgen-gallery/nggfunctions.phpWP 2.7, NGG 1.0.1
nggfunctions.php line 57:
// create the output
$out = “\n”.'<script type=”text/javascript” src=”‘.NGGALLERY_URLPATH.’/admin/js/swfobject.js”></script>’;
$out .= ‘<div class=”slideshow”>’ . $swfobject->output() . ‘</div>’;I’m having the exact same problem. Upgraded to WP 2.7 a week ago with no issues. It was only when I did the autoupdate for NextGen that my slideshows disappeared. The templates have not changed and I’ve updated the gallery database etc. still the same error: “The Flash Player and a browser with Javascript support are needed.”
Forum: Themes and Templates
In reply to: Typograph crash site totally on 2.7I am aware of the problem and it has been fixed. I was using two custom functions called post_class() and comment_class() in the theme and these two were adopted in WordPress 2.7 so there was a massive conflict between the WordPress functions.php file and the Typograph functions.php file.
I have uploaded an updated version of the theme that deals with this problem to the theme directory. In the meantime while it’s being approved by the powers at be you can go to my blog and download a fully working WP 2.7 Coltrane version. If you replace the old theme directory with this new one everything will be working perfectly again:
http://blog.pinkandyellow.com/free-wordpress-themes/typograph/
Mor10
Forum: Themes and Templates
In reply to: Typograph Theme: RSS problemsjeroenlemaire: The RSS link that is installed in Typograph by default is the standard RSS link in your WordPress installation. If it doesn’t work it means you have changed the RSS settings of your blog in some way. Are you using FeedBurner or some other service to manage your RSS feeds?
On the other issue: the theme is fixed-width by default. If the sidebar jumps to the bottom of the page there must be something else going on on your blog that has nothing to do with the theme itself. Post a link to your blog and I’ll take a look at it for you.
I’m wondering the exact same thing. In case the description above is confusing, let me have a go:
When you open an image form a gallery for instance in a thickbox, you can use the “previous” and “next” buttons to switch between the images. But the number of images you can switch between is decided by how many images are displayed in the thumbnail gallery on the source page, not how many images are actually in the gallery.
So for example if you have a gallery with 34 images but your thumbnail gallery displays only 9 at a time, when you open an image in thickbox it displays “1 of 9” images and when you get to the end you have to close the thickbox, click the “next” button to get to the next 9 thumbnails and then re-open the thickbox.
The question is if there is a way to set the gallery up so that opening the thickbox gives you access to all the images in the gallery, not just the ones that are displayed in the thumbnail gallery on the page.
Forum: Plugins
In reply to: External submit post pageOne more thing:
Alternately, is it possible to direct the subscriber users to a different page after login than the admin?
Forum: Fixing WordPress
In reply to: WordPress as CMS?I have been using WordPress as a CMS for some time now to build small-scale customer websites. It works great and has the added benefit of WordPress’ great SEO. With some serious tweaking, a few plugins and a completely customized theme, you can make a WordPress blog look like whatever you want. I’ll post some links once I launch the latest sites but for now you can read about it on my blog:
Forum: Plugins
In reply to: Flash video only in single post viewJust in case anyone was wondering what the hell I was up to I just took the new design live this afternoon:
Happy New Year
Forum: Plugins
In reply to: Flash video only in single post viewnever mind. I found the answer here: http://codex.wordpress.org/Customizing_the_Read_More
Thank you all very much for your help. This issue is resolved . I’ll post the final product when it goes online on January 1st.
Mor10
Forum: Plugins
In reply to: Flash video only in single post viewIt does bypass the_content() functionality such as handling the ‘more’ quicktag and post password handling. Try this:
<?php
echo apply_filters(‘the_content’, preg_replace(‘%<object.*<\/object>%smUi’, ”, get_the_content()));
?>ah.. almost there. now how do I get it to say “Get the whole story” instead of saying “(more…)”?
thanks for your help btw!