Tom Morton
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change slider order from DESC to ASC?Forgive me, ASC for ascending order*
Forum: Fixing WordPress
In reply to: Change slider order from DESC to ASC?I would recommend keeping the same query you have for the rest of the site, just adding
&order=DESCfor descending order. Is that what you were looking for?
Forum: Fixing WordPress
In reply to: Image is on Right in Dashboard but on left on site???Can you link us to the page?
Forum: Fixing WordPress
In reply to: WordPress in spanishYou can find all the information there or I believe you can download the entire package here:
Forum: Themes and Templates
In reply to: want to add new sidebarVisit your themes Functions.php and use the following code:
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'twentyten' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'twentyten' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );and then call this sidebar using this:
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>Forum: Themes and Templates
In reply to: removing Pages from my nav?Ah stupid me I’m sorry, I didn’t read your question properly. You can remove it using the following steps here:
Forum: Themes and Templates
In reply to: removing Pages from my nav?What is the piece of code you are using to call the pages?
If it is using the wp_list_pages, use the following
wp_list_pages( exclude= THE PAGE ID );I suggest, however, activating the new WordPress Menu system, which you can find information here: http://templatic.com/news/wordpress-3-0-menu-management
Forum: Themes and Templates
In reply to: an idiots guide please#site-title a { color:#FF0000; font-family:verdana; font-weight:bold; text-decoration:none; }Find that in the twenty ten CSS file (roughly line 344). You can modify the color by changing the “color”, the typeface using the Font-Family, etc.
Take a look here for all the different effects you can use: http://www.yourhtmlsource.com/stylesheets/csstext.html
Forum: Fixing WordPress
In reply to: Adding Message Depending on Custom FieldTwo questions for you guys. One, the ‘return;’ line breaks my sidebar, basically gives me an error saying “your theme does not support sidebar widgets”. I deleted it, and everything still works. Is that cool or dangerous?
Two, I would assume the same technique could be used for the front end as well. Example, check if the custom field =’s live, and if so display the live embed stream?
Thanks!
Forum: Fixing WordPress
In reply to: Adding Message Depending on Custom Field@michaelh I honestly don’t know how you got so good at WordPress, but it seems like you always come through. I really appreciate it man, thanks so much!
Its guys like you who motivate me to get in the forms and help out, even if I’m not exactly at “guru” status just yet.
Thanks again!
Forum: Fixing WordPress
In reply to: Adding Message Depending on Custom FieldJust to give a little more detail, I’ve got this going in my functions.php so far. Everything works except for checking what the custom field is. Right now, it doesn’t matter if the custom field = live or standard, it shows the error alert regardless.
global $wp_query; $postid = '476'; $customField = get_post_meta($postid, 'broadcast', true); if(isset($customField['live'])){ function live_message(){ echo '<div class="error fade" style="background-color:#FFEBE8;"> <p style="font-size:13px;"><strong>You are Broadcasting Live!</strong></p> <p><a href="' . admin_url( '/post.php?post=476&action=edit' ) . '">Click here</a> to edit the homepage and turn live streaming mode off. If you want to continue to live stream, ignore this message!</p> </div>'; } add_action( 'admin_notices', 'live_message'); } else {}Forum: Fixing WordPress
In reply to: Adding Message Depending on Custom FieldThanks for the reply. Here’s whats going on. I’m live streaming a show, but we don’t live stream all the time. When we are live streaming, I have a custom template that loads. I enable this using a custom field set on my “homepage” page.
I want to check IF the custom field =’s “live”, then execute the admin_notice that I have written. If it does not = live, then do nothing.
This gives a message to anyone logged into the admin panel that live streaming is enabled.
Forum: Fixing WordPress
In reply to: Page Template Option MissingYou were absolutely right! I deactivated and reactivated the theme in the super admin and the template dropdown’s back.
Appreciate it! I had a feeling it was something I was doing…
Forum: Fixing WordPress
In reply to: How to query Custom Post Meta and display the resultWait, so do you just want to echo the Custom Meta in a post? If you want to call the custom value out of a post in the loop, use the following:
<?php $key="blue"; echo get_post_meta($post->ID, $key, true); ?>But if you want to call all the posts with the custom meta “blue”, you have to use a query:
query_posts('meta_key=color&meta_value=blue');Where color is the name of your custom field and blue is the value you are looking for.
Forum: Fixing WordPress
In reply to: TDO Mini Forms and WordPress 3.0Update:
I just went into the log and found this error:
[tmort][20-06-10(18:28:50)] Form (3) submitted with bad nonce key (post = fd27aea570) from {My IP Address} !
Hope this helps!