devoninternational
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: RSS FeedJust the built in wordpress feed, settings were changed in settings > reading > Syndication feeds show the most recent = 100
[Moderator Note: No bumping, thank you.]
Forum: Plugins
In reply to: [Redirection] Regular Expression helpAlso does a list of about 150 redirects slow the site down or just those pages that are being redirected? Thanks!
Does anyone know exactly when the switch to Universal will be? Would love to have an answer to if this plugin will by updated for it by the time of the Google Universal release, all my developer friends and contacts have the same question and are getting ready to switch plugins…
Sorry I meant to start my own thread.
I have worked with the Jetpack plugin support team, done everything I could to get my site to connect to wordpress but still no solution. Downloaded v3.6 today and still can’t connect. I was so hopeful too! If anyone has any clue when or how this can be fixed it would be great. Clients are near dropping me as subscriptions and publicize are very important to them. Also any other subscription plugins that come close to what jetpack has? Thanks.
Forum: Fixing WordPress
In reply to: Targeting just the single pages of the blog not custom post typesThanks for the help bogj
Forum: Requests and Feedback
In reply to: Comment Form ValidationUnderstood I will talk with the theme developer about this.
Forum: Fixing WordPress
In reply to: What exactly is global $post;Great write up thanks for this.
Forum: Fixing WordPress
In reply to: Taxonomies for specific pagesStill trying to figure this out… is there another section on the forums that I could post this question or am I in the right area?
Forum: Fixing WordPress
In reply to: What exactly is global $post;Great info,
what exactly do you mean when you say: (template files have got access to the $post variable)
Is this different than page template files? Or do you mean page template files. I have functions in my page template files but have to use global $post as you stated above.
Thanks again for the solid info!
Forum: Plugins
In reply to: [Multiple Post Thumbnails] Using this plugin with custom post typesMy apologies, the code above after further testing was not working properly. Below is how I added support for pages, posts and CPT’s and have fully tested and it is working correctly.
add_theme_support( 'post-thumbnails' ); require_once('lib/multiple-post-thumbnails/multi-post-thumbnails.php'); /* Must be located directly under lib folder */ // Define additional "post thumbnails". Relies on MultiPostThumbnails to work if (class_exists('MultiPostThumbnails')) { $types = array('page', 'landing_pages' ); /* 'landing_pages' adds support for landing pages CPT, 'post' adds support for blog single pages */ foreach($types as $type) { new MultiPostThumbnails(array('label' => '2nd Feature Image', 'id' => 'feature-image-2', 'post_type' => $type)); new MultiPostThumbnails(array('label' => '3rd Feature Image', 'id' => 'feature-image-3', 'post_type' => $type)); new MultiPostThumbnails(array('label' => '4th Feature Image', 'id' => 'feature-image-4', 'post_type' => $type)); new MultiPostThumbnails(array('label' => '5th Feature Image', 'id' => 'feature-image-5', 'post_type' => $type)); } };
Then in your page templates place this code where you wish the image to appear:
if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('landing_pages', 'feature-image-2')) : MultiPostThumbnails::the_post_thumbnail('landing_pages', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;
You can change where it says
'landing_pages'
to page or post if you are displaying on a page or a single page (blog post). The landing_pages is a custom post type I created.
Hope this helps and again if anyone has cleaner code please share.
Forum: Plugins
In reply to: [Multiple Post Thumbnails] Using this plugin with custom post typesI hope this helps someone out there, I wanted to make sure my last question was not hidden in my previous response:
*** Does anyone know if there is a way to write an array or condense the code below so you dont have to list the post type twice:
new MultiPostThumbnails(array('label' => '2nd Feature Image', 'id' => 'feature-image-2', 'post_type' => 'page', 'post_type' => 'landing_pages'));
Thanks.
Forum: Plugins
In reply to: [Multiple Post Thumbnails] Using this plugin with custom post typesForgot to mention to display the images I placed the below code in the template for the landing pages CPT:
if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('landing_pages', 'feature-image-2')) : MultiPostThumbnails::the_post_thumbnail('landing_pages', 'feature-image-2', NULL /*, 'add class name here' */ ); endif; if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('landing_pages', 'feature-image-3')) : MultiPostThumbnails::the_post_thumbnail('landing_pages', 'feature-image-3', NULL /*, 'add class name here' */ ); endif;
*** Does anyone know if there is a way to write an array or condense the code above so you dont have to list the post type twice:
'post_type' => 'page', 'post_type' => 'landing_pages'
Forum: Plugins
In reply to: [Multiple Post Thumbnails] Using this plugin with custom post typesok I figured this out and wanted to share. You have to add the Custom Post Type in as well, see
'post-type' => 'landing pages
if (class_exists('MultiPostThumbnails')) { // imports to post_type pages new MultiPostThumbnails(array('label' => '2nd Feature Image', 'id' => 'feature-image-2', 'post_type' => 'page', 'post_type' => 'landing_pages')); /* 'post_type' => 'landing_pages' adds support for landing pages CPT */ new MultiPostThumbnails(array('label' => '3rd Feature Image', 'id' => 'feature-image-3', 'post_type' => 'page', 'post_type' => 'landing_pages')); new MultiPostThumbnails(array('label' => '4th Feature Image', 'id' => 'feature-image-4', 'post_type' => 'page', 'post_type' => 'landing_pages')); new MultiPostThumbnails(array('label' => '5th Feature Image', 'id' => 'feature-image-5', 'post_type' => 'page', 'post_type' => 'landing_pages')); };
Forum: Fixing WordPress
In reply to: Targeting just the single pages of the blog not custom post typesI had to exclude the single pages of the blog post otherwise the custom banners I was building were showing up on the blog single pages which I did not want.