gaberosser
Forum Replies Created
-
Forum: Plugins
In reply to: [Firelight Lightbox] [Plugin: Easy FancyBox] Youtube usageI added
class="fancybox-youtube"
to the video link, but still no luck. Easy Fancybox is automatically working for the “About” page photo, just not in the hard-coded link on the homepage. Could this be the issue? Just not sure…Here’s the link:
https://allanscottband.comForum: Plugins
In reply to: [Firelight Lightbox] [Plugin: Easy FancyBox] Youtube usageI’m having a similar issue, but Easy Fancybox is not recognizing my video link. However, when I add class “fancybox” to my video link, it works but only loads the “loading” gif and doesn’t ever load the actual video. Any ideas?
<a class="fancybox" href="https://www.youtube.com/watch?v=md0BFO3ACds"><img src="<?php bloginfo(template_directory) ;?>/img/feature/feature-1vid.jpg" /></a>
Forum: Plugins
In reply to: Invalid argument supplied for foreach()I just narrowed this down further to my Custom Post Type in functions.php. Apparently it doesn’t like this?
add_action( 'init', 'register_cpt_feature' ); function register_cpt_feature() { $labels = array( 'name' => _x( 'Features', 'feature' ), 'singular_name' => _x( 'Feature', 'feature' ), 'add_new' => _x( 'Add New', 'feature' ), 'add_new_item' => _x( 'Add New Feature', 'feature' ), 'edit_item' => _x( 'Edit Feature', 'feature' ), 'new_item' => _x( 'New Feature', 'feature' ), 'view_item' => _x( 'View Feature', 'feature' ), 'search_items' => _x( 'Search Features', 'feature' ), 'not_found' => _x( 'No features found', 'feature' ), 'not_found_in_trash' => _x( 'No features found in Trash', 'feature' ), 'parent_item_colon' => _x( 'Parent Feature:', 'feature' ), 'menu_name' => _x( 'Billboard', 'feature' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'description' => '4-at-a-time Rotating Feature Billboard', 'supports' => array( 'title', 'thumbnail', 'page-attributes', 'custom-fields' ), 'taxonomies' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_nav_menus' => true, 'publicly_queryable' => true, 'exclude_from_search' => true, 'has_archive' => false, 'query_var' => true, 'can_export' => true, 'rewrite' => false, 'capability_type' => 'page' ); register_post_type( 'feature', $args ); }
I feel like the more I discover, the less I know.
Also, this is also occurring on single-event pages. How can I override the header content on single-event pages?
I’m using v4.14 of EM. Is this “CONTENTS” function not compatible with WP v3.1.2?
The following fixed the issue:
added
define('EM_DISABLE_PERMALINKS',true);
in wp-config.phpThanks so much!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] layout / templateTyped in CONTENTS? Where? I need a little more explanation here, as for me, EM is dumping content into secondary areas instead of the primary content area of the page.
Basically, EM searches for the first area available for content, based on something other than #id, and plugs in all the events in that area. I would love to know how to either disable this or workaround it, because we have “content” sections in the navigation that are getting filled up with events on the events page, instead of the events showing up in the primary #content area.
I’m having a similar issue. It looks like EM basically searches for the first content area available, based on something other than div #id, and plugs in all the events, or the events form, into that area.
I would love to know how to either disable this or workaround it, because we have “content” sections in the navigation that are getting filled up with events on the events page, instead of the events showing up in the primary #content area.
I’m having a similar issue, but I found out that the events were being displayed in a separate content area I have in the nav menu. Basically, EM searches for the first area available for content, based on something other than #id, and plugs in all the events in that area.
I would love to know how to either disable this or workaround it, because we have “content” sections in the navigation that are getting filled up with events on the events page, instead of the events showing up in the primary #content area.
Forum: Fixing WordPress
In reply to: image description/caption/titlebump. Same issue.
Forum: Themes and Templates
In reply to: How to link the_attachment_link() to the postThis is great! Thanks so much for being the only person to answer this question!
However, I am getting a ‘?’ at the end of each url. https://example.com/?
Here’s what I’ve got rolled out:
<?php $args = array( 'post_type' => 'attachment', // SET POST TYPE 'numberposts' => 5, // SET HOW MANY POSTS TO SHOW 'post_status' => null, 'post_parent' => null, // ANY PARENT ); $attachments = get_posts($args); // IF TRUE.. if ($attachments) { // ... CHURN THROUGH EACH POST ATTACHEMENT AND OUTPUT AS IMAGE LINKED TO POST foreach ($attachments as $post) { echo '<div class="box col1">'; setup_postdata($post); // EXPLODE THE PERMALINK AND STRIP DOWN TO JUST THE POST URL // (POST TYPE IS SET TO ATTACHMENT AND RETURNS https://www.domain.com/post-name/attachment/attachment-name) $postURL = explode("attachment",get_permalink($post->ID)); // GET THS POST ATTACHMENT IMAGE $postImage = wp_get_attachment_image($post->ID, $size='thumbnail', $icon = false); ?> <!-- BREAK OUT OF PHP TO INSERT HTML LINK CODE --> <a href="<?php echo $postURL[0]; ?>"><?php echo $postImage; ?></a> <!-- I added for styling & date --> <span class="date-image"><?php the_time('m.d'); ?></span> </div> <?php } // END FOREACH LOOP } // END IF STATEMENT ?>
I basically just added in some HTML & removed orderby, as I want latest post images with links to posts.
Any help would be appreciated!
Also having the same issue implementing on my site. I had to do a tricky workaround that seemed to fix it.
Just called the [shortcode] via php:
<?php echo do_shortcode('[quoteRotator]'); ?>
Did the trick for me. Let me know if that helps.
Forum: Fixing WordPress
In reply to: Changed siteurl from localhost to example.com in wp-admin…ok, so somewhere in the shuffle, I am becoming more and more lost. I have tried simply re-installing WP on my FTP in a /blog folder. When I visit the site, it takes a while loading and redirects to https://example.com:8888/blog/. It throws in the :8888 like its trying to see the site locally, yet it is still at the root level of the site (which is https://example.com/blog).
I guess I may just have to get someone to physically take a look at my problem, but I am just one of those DIYers, hoping I could get some more information on here.
Thanks to esmi & samboll for your help thus far, but do you have any other alternatives?
Also, I have backup of my system through Apple’s Time Capsule. Will this help?
Forum: Fixing WordPress
In reply to: Changed siteurl from localhost to example.com in wp-admin…Ok, so editing wp-config.php worked. I can see my homepage now, but I can’t login or access other pages besides index.php. I am getting a password error and I am positive that I have the right password. This is located on my localhost server. Is there anything that I can do to bypass the password or find it in order to login?
Forum: Fixing WordPress
In reply to: Changed siteurl from localhost to example.com in wp-admin…Unfortunately, I used this video: https://www.youtube.com/watch?v=cM9Z8aQTCvQ to begin with, and it had the first step as changing the siteurl through the dashboard in WP. This is where the problem began. My backup system is on the fritz so, of course I didn’t back it up.
But I guess if I could just figure out how to change that back without accessing the site through the dashboard (which it won’t allow me to do), all would be well.