chad_coleman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Creating an “if exists” for custom field keys<?php if ( get_post_meta($post->ID, 'your_key_name', true) ) { ?> <?php echo get_post_meta($post->ID, "your_key_name", $single = true); ?> <?php } ?>
Just swap out both instances of ‘your_key_name’. Remember this belongs in the loop. And I always encourage you to read the WordPress Codex.
A good example:
<?php if ( get_post_meta($post->ID, 'header_image', true) ) { ?> <img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php the_time('Y/m'); ?>/<?php echo get_post_meta($post->ID, "header_image", $single = true); ?>" alt="<?php the_title(); ?>" /> <?php } ?>
Forum: Fixing WordPress
In reply to: Paging in Posts?Thanks Handy,
I’m such a toolbag. I had spacing in there that wasn’t supposed to be. The proper call is
<!–nextpage–> and i was using <!– nextpage –>
But yes, it also appears my theme isn’t paging aware, as now it doesn’t provide the link to the next page. Thanks for the help!
Forum: Fixing WordPress
In reply to: Private Pages Viewable Publically?Perhaps you can use the Exclude Pages plugin, and select which pages will show in the menu.
Forum: Fixing WordPress
In reply to: Wrap outside php script into a pageYou could create a page template, and use that template for the pages you want to run that script.
Forum: Plugins
In reply to: How to add exceprts but in this wayConsider using the Excerpt Reloaded plugin with a custom loop call.
You can get some ideas how to accomplish this from free magazine themes such as The Morning After Theme.
Forum: Everything else WordPress
In reply to: Spammers Break Inthat IS a better one. I actually already did that immediately after the incident. thanks! ??
Forum: Everything else WordPress
In reply to: Spammers Break InThanks ricardolopes,
Here is what happened. I had a template file single.php writable by the server, so that I could edit the file from the WP Theme Editor.
This allowed a third party spammer to write a bunch of hidden links into my template file.
This also happened to another site of mine, and the google crawler bot ended up seeing it, and removing that site from the search engine index. I’ve had to fix the site, submit it to google for reconsideration, and now have to wait several weeks before it will appear on google once more..
this is another lesson in security! always keep your template files and .htaccess at CHMOD 644!
Forum: Plugins
In reply to: [Plugin: LiveSig] This plugin destroys formattingYou’ll probably have more success letting the plugin author know, by posting this on the actual plugin page. ??
Forum: Requests and Feedback
In reply to: WMD: The Wysiwym Markdown EditorAnd here it is: https://c.hadcoleman.com/wordpress-plugins/wmd-editor-wordpress-plugin/
This site is actually still in infant stage, as you can tell by all the dust. But this plugin was so easy to throw together…
Forum: Requests and Feedback
In reply to: WMD: The Wysiwym Markdown EditorI actually just recently implemented WMD into my WP 2.5 blog that I’m currently building. https://c.hadcoleman.com/
I’m probably gonna create a WordPress plugin for it. Stay tuned, if you’re interested.
Forum: Fixing WordPress
In reply to: Show link when user is logged inWow. Some people are amazing. For anyone else who’s looking to do this, here is an example. I put this in the sidebar in reference to the “my fav” wordpress plugin at https://www.kriesi.at/
<?php if ( $user_ID ) { ?> <!-- enter info that logged in users will see --> <!-- in this case im running a bit of php to a plugin --> <?php mfp_display(); ?> <?php } else { ?> <!-- here is a paragraph that is shown to anyone not logged in --> <p>By <a href="<?php bloginfo('url'); ?>/wp-register.php">registering</a>, you can save your favorite posts for future reference.</p> <?php } ?>
Forum: Fixing WordPress
In reply to: Thumbnail Size in 2.3 – X & Y IssuesDoes this keep the image ratio consistant?
If it does, is their a way to remove it? in order to crop the thumbs into squares?
Forum: Your WordPress
In reply to: 2 Free WordPress Themes – Military & Huntinggotcha. lemme look into it in more detail.
Forum: Your WordPress
In reply to: 2 Free WordPress Themes – Military & HuntingThanks for the reminder.
I have updated their license files to contain the GNU GPL license. The Hunter theme contains a sponsored link.
Forum: Fixing WordPress
In reply to: Trouble styling wp_list_pagesHave you looked here: https://codex.www.ads-software.com/Template_Tags/wp_list_pages
Or for CSS Swag, go here: https://www.alistapart.com/articles/horizdropdowns