Comments (1)
Hi there,
Ive got this fully integrated into wordpress loop now. You may be curious as to how this is done.
the loop (for post type staff in this case):
<div class="container">
<ul class="gridder">
<?php $args = array( 'post_type' => 'staff', 'orderby' => 'menu_order', 'order' => 'ASC');
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<li class="gridder-list" data-griddercontent="#gridder-content-1"><div class="img-fluid" id="loop"><?php the_post_thumbnail(); ?></div></li>
<div id="gridder-content-1" class="gridder-content">
<div class="row">
<div class="col-sm-6">
<?php the_post_thumbnail( 'full', array( 'class' => 'img-responsive' ) ); ?>
</div>
<div class="col-sm-6">
<h3><?php the_title() ?></h3>
<p><?php the_content() ?></p>
</div>
</div>
</div>
<?php endwhile; ?>
</ul>
</div>
I had to change the content jQuery so that it properly reads the correct div. as it stands it does not
// Load #ID Content thecontent = $("li.selectedItem").nextAll( "#gridder-content-1" ).html(); processContent(myself, thecontent);
to be honest I would think you can make this a wordpress plugin and make a bit of money mate.
thought i would share my progress with you. you will be credited on the site.
thanks
J
from gridder.
Related Issues (20)
- How to disable scrollOffset effect HOT 1
- Expander at wrong place HOT 2
- How to call a gridder close function on button click HOT 1
- Extend Request: Ability to target a specific element within the gridder-list HOT 4
- gridder by default first open preview HOT 2
- Remove superfluous console.log "No active gridder." HOT 1
- Not visible on mobile HOT 5
- Not working with jQuery v3.2.1 HOT 1
- Navs not working HOT 1
- Using gridder within a WP Query does not work HOT 1
- Gridder with Flickity slider: Slideshow doesn't work after gridder content expands HOT 1
- Animations Not Working HOT 2
- Clicking disabled within the gridder-expanded-content div
- npm package fΓΌr gridder jquery plugin
- More Easing Options
- Open item from a url on another page HOT 2
- Flexbox breaking grid HOT 1
- Column breaks out HOT 3
- Multiple instances HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridder.