AvWijk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Twitter Feeds] Username next to avatarHi Actiontripguru,
Try my CSS settings (I also got rid of the border and background), the float and display: block properties are important.
.fetched_tweets.light > li {border: none!important;} .fetched_tweets > li {box-shadow: none!important; font-family: inherit!important;} .tweet_data {font: 16px/20px 'Lora', sans-serif!important; float: none!important; display: block; width: auto; text-align: left; overflow: visible; word-break: keep-all;} .wdtf-user-card {float: left!important; width: auto!important;display: inline-block; margin-right: 5px;} .times {float: right!important;}
Forum: Plugins
In reply to: [WP Twitter Feeds] No Word Wrap?Did you fix it yet? Use
.tweet_data {word-break: keep-all;}
Solved the problem for me in IE and Firefox.
Forum: Plugins
In reply to: [jQuery Colorbox] Colorbox not working at all pages?Of course I meant with all the classes included:
<a class="cboxElement" style="color: #F00;" href="blabla.jpg" title="test">Click me</a>
Here it is. https://scsdelft.schoudercom.nl/kalender/feed.rss
There is a future date marked as sept 1, 2014.The entry displays fine in the back-end as ‘to be published’ but I can’t find an option to simply auto-publish everything in the feed…
Forum: Plugins
In reply to: [bootstrap] Getting a simple working carousel without a pluginNobody? I only need these to be dynamic, the number of slides, determined by the number of attachments, and the ‘active’ status (just one slide per time, like the example)
Forum: Plugins
In reply to: [Participants Database] MySQL connection problems with Participant DatabaseMay seem a bit rigorous, but I couldn’t make use of this plugin anymore. My webhost was unwilling to help me with any script-related issues.
I decided to implement my own solution: a Custom Post Type with Custom Fields.
Works great for my needs, just a simple member table with common fields like first name, last name, membership date, email, featured image, etc.
Forum: Hacks
In reply to: Automatically create download link?Solved this.
I simply list the attached audio files neatly in a table, together with the embedded audio.
<?php $audio = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'audio' ) ); ?> <?php if ( empty( $audio ) ) : ?> <?php edit_post_link( '<div class="edit-post">Geen MP3\'s geupload voor deze songtekst.</div>' ); ?> <?php else : ?> <div> <p><em>MP3-bestanden voor dit nummer (download / afspelen)</em></p> <table class="table table-striped"> <tbody> <?php foreach ( $audio as $attachment_id => $attachment ) : ?> <tr> <td class="col-xs-1"><a style="color: #000;" href="<?php echo wp_get_attachment_url( $attachment_id, 'full' ); ?>"><i class="fa fa-download"></i></a></td> <td class="col-xs-4"><a style="color: #000; display: block;" href="<?php echo $nummer_url = wp_get_attachment_url( $attachment_id, 'full' ); ?>" title="<?php echo wp_get_attachment_link( $attachment_id, '' , false, false, ' '); ?>" download><?php echo $title = get_the_title( $attachment_id );?>.MP3</a></td> <td class="col-xs-7"><?php echo do_shortcode('[audio mp3="'.$nummer_url.'"][/audio]'); ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php endif; ?>
Forum: Plugins
In reply to: [Plugin: Advanced Custom Fields] not showing in edit post fieldSolved this with the Admin Columns plugin!
Forum: Hacks
In reply to: Automatically create download link?I saw this link, looks perfect, but it’s only for playlists… I need the download link for every single MP3 upload.
https://wordpress.stackexchange.com/questions/141767/download-button-for-wp-audio-player
Forum: Hacks
In reply to: Extra CSS class in last column (loading posts in loop)Alchymyth, hero!! That did the trick.
Forum: Hacks
In reply to: Extra CSS class in last column (loading posts in loop)The output should be like this:
<div class="percent-one-fourth box fadeIn"><div class="work-member">stuff</div> <div class="percent-one-fourth box fadeIn"><div class="work-member">stuff</div> <div class="percent-one-fourth box fadeIn"><div class="work-member">stuff</div> <div class="percent-one-fourth <strong>column-last</strong> box fadeIn"><div class="work-member">end column stuff</div>
Forum: Hacks
In reply to: Get title from attached imagesGot it! Works great in combination with my old code. Apparently this displays the title as I set it in Media Manager.
<?php $filename = basename ( get_attached_file( $data->ID ) ); ?> <?php echo $filename ?>
Forum: Hacks
In reply to: Get title from attached imagesOnly the thumbnail part is important, but is part of the same post (query posts)
Forum: Hacks
In reply to: Get title from attached imagesI got a blank screen, code is not working. This is the full chunk of code I have now, how do I show the title?
<div id="postcontainer-4"> <?php query_posts('p=121'); while (have_posts()) : the_post(); ?> <div class="col-sm-12" id="single-post post-<?php the_ID(); ?>"> <p><h2><?php the_title();?></h2></p> <?php the_content();?> </div> <!-- end: col 8 --> <?php $thumb_ID = get_post_thumbnail_id( $post->ID ); if ( $images = get_children(array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'exclude' => $thumb_ID, ))) : ?> <?php foreach( $images as $image ) : ?> <div class="col-sm-4 col-xs-6"> <div style="padding-bottom: 10px; padding-top: 10px;"> <a class="fancybox-asset" href="<?php echo wp_get_attachment_url($image->ID, 'thumbnail-latest'); ?>" alt="<?php the_title();?>" title="TITLE GOES HERE!"> <div class="circle largecircle" style="background: url(<?php echo wp_get_attachment_url($image->ID, 'thumbnail-latest'); ?>); background-size: cover; background-position: center; "><div class="circle-overlay-zoom"><i class="fa fa-search fa-2"></i></div></div> </a> </div> </div> <?php endforeach; ?><?php else: // No images ?><!-- This post has no attached images --> <?php endif; ?> <?php endwhile;?> </div>
Forum: Plugins
In reply to: [Participants Database] MySQL connection problems with Participant DatabaseNope.. cheap hosting package