David Calhoun
Forum Replies Created
-
Forum: Plugins
In reply to: Limit editor rights to few pages onlyForum: Plugins
In reply to: [Plugin: The Events Calendar] Change number of items shown in list view?Yeah, this bothers me. I don’t want to change the setting for my entire site. I want to be able to use
post_per_page=5orshowpost=5or something. Can we not do that?Forum: Fixing WordPress
In reply to: Show 2 posts on ‘home’ page, 10 on ‘blog’ pageI would just make a new template for the home page. You could copy the code from the index.php file into a new PHP file and save it as home.php in your theme folder. Then add:
<?php query_posts('posts_per_page=2'); ?>right before this:
<?php if (have_posts()) : ?>That would limit the page to only displaying two posts. You could also add the code you need to link to the “blog” page.
Forum: Plugins
In reply to: Flutter Assigned Theme Not WorkingI don’t think this bug was ever fixed in Flutter. I have since moved onto using Magic Fields. It is a fork off Flutter, and being developed at a much faster pace the Flutter. Flutter has become pretty much dead in the water.
I highly recommend checking out Magic Fields. It’s the same UI as Flutter. You’d have no problem moving over.
Forum: Fixing WordPress
In reply to: Loading Javascript FilesI honestly don’t remember, I think I overlooked something small. I’ve been able to use Javascript fine on many sites since then. If you are still having trouble with this, comment back and I’ll try to help you out.
Forum: Plugins
In reply to: [Plugin: Flutter] Hide Flutter Write PanelsMagic Fields supports the use of Role Manager as well. I highly recommend switching to Magic Fields. The developers are actively developing this plugin, unlike the Flutter guys.
Forum: Themes and Templates
In reply to: Excerpt ignoring set lengthI’ve been trying to figure this out for weeks. This explains a lot.
Is there any other way to set the length for a hard coded the_excerpt(); function?
Forum: Plugins
In reply to: [Plugin: TinyMCE Advanced] Stopped workingTinyMCE Advanced is working for me in WP 2.9.1 for the most part. But the feature of forcing WordPress not to remove extra
<p>and<br />tags for line breaks is not working.Forum: Themes and Templates
In reply to: Adding special characters between menu items using WP_LIST_PAGESI found the answer to my question if anyone needs to know how to do this. You can find the answer at the following page:
http://wordpress.org/support/topic/244544?replies=16#post-1312208
<?php $links = wp_list_bookmarks('title_li=&categorize=0&sort_column=menu_order&echo=0'); $bookmarks = explode('</li>', $links); //create array from string returned by wp_list_bookmarks array_pop($bookmarks); //pop last element off array echo implode('<span class="divider"> | </span>', $bookmarks); ?>Forum: Themes and Templates
In reply to: Adding special characters between menu items using WP_LIST_PAGES@capn Code
Thank you so much! I’ve been trying to figure this out from your first code for awhile. I’m still a PHP novice. Slowly learning. 🙂
@alchymth
Thank you for you reply.
I added the ‘echo=0’ argument, but now nothing is displayed.
Forum: Themes and Templates
In reply to: Adding special characters between menu items using WP_LIST_PAGES@capn Code
How could I edit this PHP to be used with the “wp_list_bookmarks” function? I’d like to list the links and throw a ” | ” between each one.
This is what I’ve tried so far. It will list the bookmarks correctly, but for some reason doesn’t insert the ” | ” between them:
<?php $links = wp_list_bookmarks('title_li=&categorize=0&sort_column=menu_order'); foreach($links as $i => $page) $links[$i] = '<li><a href="' . link_url($page->ID) . '" title="' . attribute_escape(apply_filters('link_name', $page->link_name)) . '">' . apply_filters('link_name', $page->link_name) . '</a></li>'; echo implode('<span class="divider"> | </span>', $links); ?>Thanks for the help.
Forum: Fixing WordPress
In reply to: Multiple Editable RegionsI’ve now moved to using Magic Fields. The guys developing this plugin are awesome, and extremely helpful.
Their plugin allows you to create all kinds of Write Panels with custom fields. Just what I needed.
Forum: Plugins
In reply to: [Plugin: Flutter] Hide Flutter Write PanelsI’ve switched to Magic Fields. They have a solution to the problem above. The guys at Magic Fields are moving a lot faster in development and are very helpful in their forums.