themagiclaundry
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Multiple Post Thumbnails] Image not displayingjust tried to copy and paste that code and changed ‘project’ to ‘post’ and no luck. the picture will display in the editor, but when i refresh the site. theres no pictures there. i’m using this in conjunction with the wp-creativx theme. heres my old site, which sucks but is live now. https://themagiclaundry.com and the new site that i’m trying to put up is https://themagiclaundry.com/blog if you notice the 3 picture thats on there now are from 3 separate empty posts with just the “featured” custom field filled out.
Forum: Plugins
In reply to: [Plugin: Multiple Post Thumbnails] Image not displayingi’ve read a couple posts and i tried many various versions of codes. Here is what i have so far in my functions.php
[Code moderated as per the Forum Rules. Please use the pastebin]and heres what i have in my page.php
<?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('page', 'image2')) : MultiPostThumbnails::the_post_thumbnail('page', 'image2', NULL, 'post-image2-thumbnail'); endif; ?> <?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('page', 'image3')) : MultiPostThumbnails::the_post_thumbnail('page', 'image3', NULL, 'post-image3-thumbnail'); endif; ?>
i’m new to wordpress and php. i spent many hours doing trial and errors but nothing worked and would love some guidance. thanks
Forum: Plugins
In reply to: [Plugin: Multiple Post Thumbnails] Image not displayingso i was able to get the code inserted without errors now. when i goto posts, i see the secondary featured image. and i click “set as featured” or “set as secondary” but no matter what, no picture will appear on my page.
the only way i can get an image to appear is if i use the “Featured” custom field. but that only allows me 1 picture per posts
Forum: Plugins
In reply to: [Plugin: Multiple Post Thumbnails] Image not displayinghello,
where in functions.php do i put this code?
$thumb = new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'page' ) );
i tried putting it on the top of the page and at the bottom and i get errors.
Forum: Fixing WordPress
In reply to: help with setting up using 1&1bump