Michael Fields
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to edit a Flash header?Best wishes with this. I think that there is a 30 day free trial on Flash which should be plenty of time to make the modifications that yu need to make. In the future, I would suggest against downloading themes that depend on Flash. Your experience is a perfect example of why I would make this suggestion.
-MikeForum: Fixing WordPress
In reply to: How to Remove or Replace Code from the Admin PanelI don’t really know what to tell you, there are no readily available hooks that I can find. There may be some kind of secret trick that I do not know about. Have you considered using css or javascript to hide the elements?
Forum: Fixing WordPress
In reply to: Any good tutorials for learing AJAX?More reading:
http://codex.ww.wp.xz.cn/AJAX
http://www.1stwebdesigner.com/wordpress/implement-ajax-wordpress-themes/
http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin
http://amiworks.co.in/talk/simplified-ajax-for-wordpress-plugin-developers-using-jquery/
http://www.webreference.com/programming/wordpress/themes_design/Forum: Plugins
In reply to: plugin for postsSame idea, just use a category instead of a page maybe?
Forum: Plugins
In reply to: plugin for postsForum: Plugins
In reply to: Thumbnail as menu itemNo problem, always willing to help out with interesting functionality ๐ Glad you got it to work!
Forum: Fixing WordPress
In reply to: How to edit a Flash header?Do I have to buy the $600 adobe flash editing software to edit it? or is there another way? This is a one off thing so i really wan’t planning on buying any software.
Pretty much, but perhaps you could download a free trial?
Forum: Plugins
In reply to: plugin for postsHave you tries the more tag?
Forum: Fixing WordPress
In reply to: Any good tutorials for learing AJAX?This is the best that I have read: http://www.wphardcore.com/2010/5-tips-for-using-ajax-in-wordpress/
Forum: Plugins
In reply to: Thumbnail as menu itemMaybe something like this:
$thumbnail = ''; if( $id = has_post_thumbnail( (int)$item->object_id ) ) { $thumbnail = get_the_post_thumbnail( $id ) }Forum: Fixing WordPress
In reply to: How to Remove or Replace Code from the Admin PanelPerhaps if you could explain your situation in more detail, i might be able to help.
Forum: Plugins
In reply to: Thumbnail as menu itemI’m guessing this is the section I need to borrow and edit for my use:?
Yep!
If so, is it this following section I would need to edit…
Yes. I would suggest modifying the
$item_outputvariable.If so, how do I call the thumbnail. I ask because things like the_title() don’t get used so will post_thumbnail() work here?
Something like:
$thumbnail = get_the_post_thumbnail( $id );What do you mean by the walk() method, don’t know where you’re finding this?
My bad, please disregard this.
Forum: Plugins
In reply to: Thumbnail as menu itemMost everything should be in the
$itemobject. Try to runvar_dump( $item )and see if what you need is in there. If you cannot find it, tryprint '<pre>' . print_r( get_defined_vars(), true ). '</pre>';Forum: Plugins
In reply to: Thumbnail as menu itemThe first bit would go in functions.php of your theme. The second bit should go where ever you want the menu displayed in your theme. You will want to call the post thumbnail from within the
walk()method of you custom walker class.Forum: Fixing WordPress
In reply to: Determining whether a category is top-level or notThe following code should do what you need in category.php:
$sep = 'ยป'; $parents = get_category_parents( $cat, TRUE, $sep ); $parents = explode( $sep, trim( $parents, $sep ) ); if( 1 === count( $parents ) ) { /* No category parents. */ } else { /* One or more parent categories. */ }