GithubHelp home page GithubHelp logo

mgmartel / wp-tiles Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 25.0 3.3 MB

Add beautiful, fully customizable post tiles or tiled galleries anywhere on your WordPress site easily with WP Tiles.

Home Page: http://wp-tiles.com/

CSS 8.94% JavaScript 19.36% PHP 71.53% Shell 0.03% Ruby 0.14%

wp-tiles's Introduction

=== WP Tiles ===
Contributors: Mike_Cowobo
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U32MTZ9VGHLKS
Plugin URI: http://wp-tiles.com/
Author URI: https://keetrax.com/
Tags: tiles, grid, shortcode, gallery, display, list, page, pages, posts, query
Requires at least: 3.6
Tested up to: 4.5.2
Stable tag: 1.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Add beautiful, fully customizable post tiles or tiled galleries anywhere on your WordPress site easily with WP Tiles.

== Description ==

WP Tiles is a WordPress plugin that allows anyone to create beautiful tiled layouts for their website.

With WP Tiles you can:

* Display your latest blog posts in a fully customizable and responsive grid layout
* Show a tiled archive of any post type, category or other taxonomy
* Create beautiful tiled image galleries using the WP Media Uploader

> To experience for yourself how easy it is to create grids with WP Tiles, checkout the [grid designer](http://wp-tiles.com/#grid-editor) on our website.

= Usages =

* **Displaying Posts**: The simplest way of using WP Tiles is by placing the `[wp-tiles]` shortcode somewhere on any of your pages or posts. Just add [wp-tiles] to your post to view the default tiles. However, WP Tiles is extremely flexible, allowing you to specify what content you want to display on your tiles, whether to display background images or skip posts that have no featured image, and much much more.

* **Create a tiled gallery**: You can use WP Tiles to replace your default WordPress `[gallery]` shortcode. Simply create a gallery and select the grid you want to use, and you are good to go. Images can link to the attachment page, the image file, or be opened using a Thickbox, or with JetPack's Carousel (or the [Gallery Carousel without JetPack](http://wordpress.org/plugins/carousel-without-jetpack/) plugin!).

> **Update:** We recently released our *free* Twenty Fourteen child theme for WP Tiles. Check it out [here](http://wp-tiles.com/tiledfourteen/).

= Other Features =

*Pagination using the shortcode*
The shortcode can be **automatically paginated**. The plugin includes AJAX pagination (without page reload), previous/next page navigation and page number navigation.

*SEO Friendly*
The Tiles require JavaScript to be rendered, but they are readable by bots that don't use JavaScript, and even include basic Schema.org microtags and are generated using clean HTML5. This means that you can safely use WP Tiles as a primary element on your page without worrying about SEO.

*Grid Builder and Tile Designer*
The admin interface comes with a live editor for grid templates, so you can immediately see what grid templates look like. Tiles and bylines also come with a collection of hover effects and a list of adjustable properties that you can edit and preview immediately in the Tile Designer.

*Completely custom bylines*
The bylines are now generated using a custom template, the mark up and content of which you can control entirely. You could even start showing complete posts on tiles if you want to!

For complete documentation, check out the website at [wp-tiles.com](http://wp-tiles.com/).

> If you want to help develop this plugin, visit the [GitHub repo](https://github.com/mgmartel/WP-Tiles).

== Installation ==

Install the plugin the usual way, and activate it.

You will now have a menu item for WP Tiles where you can edit your Grid templates and the plugin default options. In your post and page editor, you can generate the WP Tiles shortcode by clicking the button the toolbar.

For complete documentation, check out the website at [wp-tiles.com](http://wp-tiles.com/).

== Frequently Asked Questions ==

= I get a notice saying that I need to upgrade my PHP version, what does that mean? =

Check out [this post](http://wp-tiles.com/docs/upgrading-from-php-5-2-to-php-5-3/) on our website.

= My images are blurry / pixelated / low quaility! What's up? =

WP Tiles by default uses the `large` image size provided by WordPress. This is the same size as you would get when you insert an image into a page and select 'Large' for its size. However, users (that's you!) can change this size in their admin panel (in Settings -> Media). If the `large` size is smaller than the largest tile, the images will be stretched (proportionally).

There are 3 ways out:

1. Change your Large image size to be bigger (in Settings -> Media)
2. Select a different size for WP Tiles to use in the admin panel (WP Tiles -> Image Settings)
3. Override the image size in the shortcode: `[wp-tiles image_size='full']`

= WP Tiles is loading slow! What can I do? =

See the previous question! WP Tiles uses the `large` image size in WordPress by default. If that size is gigantic, or if you have set WP Tiles to use an even larger size (like `full`), then WP Tiles will load heavy images. Adjusting the image size down should make your website load faster again.

= WP Tiles is not selecting the image I want from posts! Hm? =

By default, WP Tiles will try its hardest to select an image from your posts, in this order:
1. Featured Image
2. First attached image
3. First image in post itself

If you want to limit this, there are 3 options, either in the admin panel (WP Tiles -> Image Settings), or in the shortcode (`[wp-tiles image_source=...]`):

Attached Only `attached_only` - Don't look inside post content for image
Featured Image Only `featured_only` - Only use Featured Image
Only show image for Media Posts `attachment_only` - Don't show image, unless the post itself is a media post

= Can I change what is shown on the tiles? =

Yes! The content of the tiles is determined by the 'byline template'. As with everything in WP Tiles, you can either set the template in the options panel, or put it in the shortcode directly. In the shortcode use the `byline_template` attribute for the byline on *image tiles*. Use `byline_template_textonly` for bylines on *text-only tiles*.

In the template, wherever you put the following tags, they will be replaced by content from the post:

* `%title%, %content%, %date%, %excerpt%, %link%, %author%, %featured_image%` - All taken from the post
* `%categories%` - Comma separated list of categories
* `%category_links%` - Like above, but with links
* `%tags, %tag_links%` - Same as categories
* `%meta:META_KEY%` - Replace META_KEY by the meta key you want to display
* `%tax:TAXONOMY%, %tax_links:TAXONOMY%`

Also see [this](http://wp-tiles.com/docs/byline-templates/) page in our documentation.

= Can I add WP Tiles to my theme or plugin? Or can I show tiles in my templates, for example on in the category archives? =

To show WP Tiles in your templates, there are template tags available. See the documentation on the website [here](http://wp-tiles.com/docs/template-tags).

= Can I hide the tooltips that appear when I hover over tiles? =

It's not a default WP Tiles option, but there is a simple plugin that does exactly that:

[No Title Tooltips](https://wordpress.org/plugins/no-title-tooltips/)

== Screenshots ==

1. WP Tiles showing posts with a hover effect ([Designer Homepage example](http://wp-tiles.com/example-pages/designer-homepage/))
1. WP Tiles displaying similar posts ([Architectural Blog example](http://wp-tiles.com/example-pages/architectural-blog/))
1. WP Tiles gallery ([Travel Blog example](http://wp-tiles.com/travel-blog/))
1. Grid editor in the backend
1. Tile designer
1. Shortcode editor

== Changelog ==

= 1.1.2 =

* Bug: Site administrators could create a stored XSS on the WP Tiles admin pages. Thanks to Th3R3p0 for finding and reporting this vulnerability!

= 1.1.1 =

* Bug: Fix script error that caused background images to disappear from tiles (lots of thanks to Thomas Bouffon!)

= 1.1 =

* Only display users that have published posts in the admin interface
* Better admin performance on large sites (thanks @csdaavid!)

= 1.0.1 =

* Released [TiledFourteen](http://wp-tiles.com/tiledfourteen/), a free theme for WP Tiles
* Added: Filter for the 'Load More' text (`wp_tiles_load_more_text`) when using AJAX pagination
* Fix: WP Tiles was conflicting with Squirrly admin page. Removed fixed position on the the admin page
* Fix: Path for the textdomain was not relative, causing errors
* Fix: WordPress uses another paging parameter on the front page (page instead of paged). WP Tiles now detects this

= 1.0 =

* Complete overhaul of the plugin :) New features include:
* Grid Builder and Tile Designer
* (AJAX) Pagination using the shortcode
* Tiled Galleries
* New shortcode syntax and button in editor
* Made the output SEO Friendly
* Completely custom bylines
* Modern Styles
* Grids repeat infinitely (no fallback to 1Γ—1 template)
* Tile animation (on load, window resize or template selection) is now optional
* Automatic elipsis for multi-line content
* Hides current post when used inside the loop (can be disabled)

= 0.6.1 =

* Last version that is compatible with PHP5.2.X. Added compatibility message for when the 1.0 update happens.

= 0.6 =

* Last update before release of WP Tiles 1.0. This update contains information and notices about the forthcoming update.

= 0.5.9 =

* Added wp-tiles-byline filter

= 0.5.8 =

* Made plugin compatible with qTranslate

= 0.5.7 =

* Added categories to tile classes

= 0.5.6 =

* Make sure images are still grabbed correctly when showing post attachments

= 0.5.5 =

* Fix warning static declaration of WP_Tiles_Settings_Config::dropdowns. (Thanks @chrishas35)
* Allow for more complicated queries in the shortcode, using curly braces for arrays.

= 0.5.4 =

* Load admin class at a later stage, so Custom Post Types have the time to register

= 0.5.3 =

* Trigger window resize event for browser compatibility
* Use minified scripts unless SCRIPT_DEBUG is true

= 0.5.2 =

* Use cache when finding first image
* Made first image pluggable
* Allow multiple post types to be queried by using post_type{}=xxx&post_type{}=xxx in the shortcode

= 0.5.1 =

* Made all template functions pluggable
* Fixed dates showing date of parent post

= 0.5 =

* Updated to new version of Tiles.js
* Added customizable cellpadding option
* Improved admin documentation

= 0.4.4 =

* Fix loading of templates from settings instead of from defaults

= 0.4.3 =

* Fix bug where numberposts argument doesn't work from the settings and the shortcode

= 0.4.2 =

* Restored the_wp_tiles() template tag behaviour to pre-0.4 for backwards compatibility
* Added the_category_wp_tiles() and the_loop_wp_tiles() for more fine-grained control over WP Tiles in themes
* Fixed: since 0.4 show_selector wasn't properly saved in the settings page

= 0.4.1 =

* Updated to new version of Tiles.js

= 0.4 =

* Use existing query when used on category page (allows for pagination!)

= 0.3.6 =

* Fixed various code bugs (many thanks to [maciejkurowski](http://wordpress.org/support/profile/maciejkurowski)!)

= 0.3.5 =

* Added options to show dates in byline
* Some updates to the FAQ section

= 0.3.4 =

* Fix: tiles weren't outputted on the place of the shortcode

= 0.3.3 =

* Added template function the_wp_tiles(), which renders the tiles (if on posts or archive page for current category)

= 0.3.2 =

* Make sure that tile text background does show up when default is selected

= 0.3.1 =

* Added option to use random colors for tile texts (colors and opacity configurable)

= 0.3 =

* Added option for cut-off point small-screen / big-screen templates
* Hide template selector if small screen template is used
* Added all possible 'order by' parameters to the settings screen
* Improved settings screen
* Various small fixes (thanks raubvogel)

= 0.2.2 =

* Added extra display options: show text and byline contents (choose whether to show categories, excerpts or nothing at all)

= 0.2.1 =

* Centered cut off tile images
* Tiles can now be inserted with a greater offset from the top

= 0.2 =

* Fix resize bug - now rest of content is displaced properly
* Background now always stretches to cover
* Also checks for featured image (oops)
* Fixed that templates would sometimes get lost when saving the first time
* Extended wp-tiles-data filter
* Added 'wp-tiles-hide-byline' filter, to hide the byline box on a per-post basis (only programmatically..)
* Various other fixes
* Fix loading of stylesheet from (child)theme
* Fix small screen (mobile) template would add an extra row of single posts
* Added wp-tiles-image-size filter to set the image size used for the tiles

= 0.1.3 =

* Change the way templates are handled in the shortcode - now you can choose a predefined template by its name in the shortcode (eg. `[wp-tiles template="Banner"]`).

= 0.1.2 =

* Fixed shortcode attribute handling

= 0.1.1 =

* Fixed "T_PAAMAYIM_NEKUDOTAYIM" error with PHP < 5.3.

= 0.1 =

* First upload.

== Upgrade Notice ==

= 1.0 =

WP Tiles 1.0 is a complete overhaul of the plugin. One thing that has greatly improved is the shortcode syntax. We have done our best to make sure that shortcodes created for the old version still work, but we can't guarantee that they will look the same as before the update. Please read the [upgrade guide](https://keetrax.com/blog/2014/05/upgrading-to-wp-tiles-1-0/) and make sure that all your pages with WP Tiles on them are still working after the update.

= 0.6.1 =

= 0.6 =

WP Tiles will update to version 1.0 **soon**. Please read the [announcement](https://keetrax.com/blog/2014/05/announcing-wp-tiles-1-0/) and be aware that the update after this one will not be 100% compatible.

= 0.5 =

You can now customize the padding between cells.

= 0.4.2 =

The previous update changed the behaviour of the_wp_tiles() in plugins. This is restored. If you changed your template files to suit yesterday's 0.4 or 0.4.1, you can simple change the_wp_tiles() to the_loop_wp_tiles() or the_category_wp_tiles(). See the readme for more info on the new template tags.

= 0.4 =

WP Tiles can now be used as a replacement for your category pages with pagination! See the readme on how to do this.

= 0.3 =

In this version you can set at which point you want to switch to the small screen template, or disable this altogether.

wp-tiles's People

Contributors

chrishas35 avatar mgmartel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wp-tiles's Issues

Site does not show after shortcode

Hello.

I installed the 1.0 beta version. (I have not the stable version installed before).

When i put a shotcode into my editor, and i after that will see how my site look, comes the problem. The site doesnt show up. All that happens is i see a white website with no content.
Is that issue new for you?
You can see what happens here:
http://itguiderne.dk/guider/windows-guider/

Kind regards - Jonas

Layout is broken with ajax pagination

If i set such code in .php template:

          <?php // page.php
            if ( function_exists( 'the_wp_tiles' ) ) {
              the_wp_tiles( array(
                'posts_per_page' => 7,
                'order'          => 'DESC',
                'orderby'        => 'date',
                'grids'          => 'home',
                'paged'          => ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1
              ) );
            }
          ?>

first 7 look normally. But!

if i click load more, i get:

http://i.imgur.com/sklg9DT.png

why? also if i set (for example) 'posts_per_page' => 20 - all is ok, this article 1 is displayed normally

how can we solve this trouble? (on console i see, that wp tiles generate json output with this wrong element)

show limited posts

Hi, thanks for this plugin
I've an issue; How if I only want to show my last 8 posts?

for example I want use it in my home page and I no need load more button which I can turn it off right now but how to show only the numbers of my latest posts?

Thanks.

Make load more button infinite scroll

Hi there,

Can you please help me on making the load more button auto load as infinite scrolling. I am using your beta version.

Thanks
Sam

Hello can you please help on this. where to look into replace the load more button to infinite scrolling. please let me know.

Error on Page Load

After creating image gallery, i try to preview but it doesn't show.
It gives "fatal error" message
"Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\wamp\www\wordpress\wp-includes\functions.php on line 3380"

Any clues on what to do will be much appreciated.

Broken category page

Anyone seeing the category pages being empty/broken when using WP Tiles + the TiledFourteen template? I'm getting empty category pages that should be populated and it's not entirely clear why.

Is custom work required using the information here: http://wp-tiles.com/docs/template-tags/ ?

Error when using WP_DEBUG

I receive the following error: Notice: Trying to get property of non-object in /vagrant/wordpress/wp-content/plugins/wp-tiles/vafpress-framework/classes/control/fieldmulti.php on line 91

Make WP Tiles optionally BEM-notation compatible

It'd be great if WP Tiles would support an optional custom Block Class and/or BEM notation support.
It has proven to give advantage in orientating in large code bases more easily.

So wp-tiles-tile class could become tiles__tile and wp-tiles-image-animated wp-tiles-image-scale-up could become tiles__image--animated tiles__image--scale-up.

Single row tiles missing byline title

I've discovered a bug on a few sites where a single row tile has no content inside the .wp-tiles-byline-wrapper div. It looks like this is because the height of the div is set to 12%, making it too small to properly display the content. I believe the jQuery dotdotdot() function then removes the content since it doesn't fit.

I've put a fix in place on the sites I was looking at the changes the height of .wp-tiles-byline-wrapper from a % value to a vh value. I'm happy to push my changes for review.

The change is in assets/css/wp-tiles.css
.wp-tiles-byline{max-height:10vh !important;min-height:3rem;}

WP-Tiles + Page Builder Error

I'm using Themify and here's what they told me when I updated to the latest version and it broke my site...

The conflict is due to the WP Tiles plugin not using supress_filter. We changed the way our plugin handles query for better theme compatibility and to comply with WP standards, but this might cause the conflict with WP Tiles.

I posted this on your wp plugin page with others having similar issues using other builders here.

Wish I knew how to code better and could offer any kind of support. Unfortunately, I do not. I am prepared however to make a donation. It`s such an awesome plugin!

ERR_CONNECTION_RESET with SiteOrigin

Love your plugin! Unfortunately when i use SiteOrigin (https://siteorigin.com/) the page refuses to load with a ERR_CONNECTION_RESET output in Chrome Developer Tools.

Somebody with a workaround? I think this is really easy to reproduce. I only got my development local else i would share a link.

Cheers!

Interaction between WPT and Organize-Series.

If both OS and WPT are activated, a post containing a Tiles gallery does not display OS seriesmeta or seriesbox. Instead, the content of seriesmeta is injected into wp-tiles-byline-content.
Tested with only OS and WPT active, using WP 4.5.2 and Twenty-Sixteen theme.

PHP 7 deprecation warnings

This is what will happen with wp-tiles with PHP 7.x:

FILE: wp-tiles/vafpress-framework/includes/wpalchemy/MetaBox.php
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
 453 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
 545 | ERROR   | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
-------------------------------------------------------------------------------------------------------------

FILE: wp-tiles/vafpress-framework/bootstrap.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 195 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

Display network feed using WP Tiles

Hi there,

I really like this plugin and would like to use it to help display a list of network posts gathered from around a multisite. I see that you can run custom queries, but can I tap into the network posts feed generated from another plugin?

Unable to change tile min-height

For example in css i set min-height for tile, but when i load page - height is calculated with a little bit of "magic". And it cause some "bad" .top offset
How can i set min tile height?

Resets to Default Tile Layout ajax reload

I'm using the the_loop_wp_tiles() to replace the loop, and it works brilliantly on page load, but I'm using Search and Filter and when it ajax reloads, it seems to set back to a default state even if I add an array of options in. Any ideas how I can force it to use the current settings in the WP backend?

Wrong date format

I use the short dd.mm.yyyy format in my Wordpress installation. But WP Tiles ignores settings and shows it like default long "day-of-week, month-name, date, year". How to fix it? Wordpress 4.8.2 version, runs on localhost.

PHP Errors, Undefined Index, and Undefined Offset

I am getting several PHP errors. Many appear after saving settings or changing settings. If you uncheck show template selector, you get:
Notice: Undefined index: show_selector in ..plugins/wp-tiles/wp-tiles-admin.php on line 237
(this also now means that saving a page gives a white screen with errors about this index and headers already sent)

Setting options in the shortcode is also giving errors:
Notice: Undefined offset: 0 in ../plugins/wp-tiles/wp-tiles.php on line 123
If I add a second option, it gives the same error with offset: 1.

This is the latest version of WordPress.

offset broke the load more function

My website have 4 news on the homepage and from the 5 onward on the "more News" page so I've putted this shortcode (generated from the editor) in the more news page:

[wp-tiles post_type="post" orderby="date" order="DESC" posts_per_page="4" category="" tag="" tax_operator="IN" offset="4" post_status="publish" ignore_sticky_posts="false" exclude_current_post="true"]

and it's displayed correctly but if I click on the "Load More" button I get the same 4 news replicated and if i click again nothing changes after some test I've discovered that the problem is the offset and if I set it to 0 all works smoothly.

Pages are being displayed along with posts

I think it would be good to have options that allow:

  • Ability to select posts, pages, or both. Further filtering by category would be nice.
  • Centering of the grid (the grid is left-aligned)

Page Tiling Not Working

Dear mgmartel,

Thank you for your work on this theme, and for release a free version of it. Can the theme also show pages in tiles, not just posts? From the docs it looks like it can, although when I included [wp-tiles] in the page it does not appear as a tile on the homepage. Any info would be greatly appreciated.

Cheers,
Misha

WP 5.5 conflict

I'm having problems using WP Tiles with WP 5.5 and later.

I get following JS errors in the console and many part of the admin site stops working.
Disabling WP Titles plugin will not load the offending JS and everything working as expected.


Uncaught TypeError: $(...).live is not a function
jquery.reveal.js:20:25

tipsy jQuery
init_tipsy https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
\<anonymous\> https:/progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
jquery.tipsy.js:180:25


Uncaught TypeError: vp.init_ace_editor is not a function
init_controls 
https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
\<anonymous\> https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shortcode-menu.js?ver=5.5.3:110

shared.min.js:1:18433

I've fixed it using following code in jquery.tipsy.js file:

if (this[binder])
    this[binder](eventIn, enter)[binder](eventOut, leave);

and in shared.min.js I've replaced the failing statement "a=e.browser.msie" with "a=false" (since who is using MSIE anymore to admin WP?)

Need ability to disable shortcode button

We absolutely love this plugin, hands down the best at what it does, BUT....

We need to be able to stop non-Admin users from generating WP-Tiles shortcode in the Post Write/Edit screen - have tried every solution we could find online for removing the tinyMCE buttons added by plugins without success.

When I try to echo the button names so I can target the WPTiles shortcode button, I see an error message that is this:

**Warning: array_merge(): Argument #1 is not an array in /homepages/8/d116188896/htdocs/BAI_2016/wp-content/plugins/wp-tiles/vafpress-framework/classes/shortcodegenerator.php on line 318

Warning: implode(): Invalid arguments passed in /homepages/8/d116188896/htdocs/BAI_2016/wp-includes/class-wp-editor.php on line 681**

SO it stops loading the button and echoing the button names just before the WP-Tiles button is displayed - when I remove my code to echo the button names, then the buttons all load up fine, including the WP-Tiles shortcode button, but since I can't figure out what it's named, I can't use the code example provided at the WP Codex for removing tinyMCE buttons.

Mike, can you please tell me how I can remove the registration of that shortcode button from your plugin? Ideally we'd love a future update that includes an option to disable that button based on user-level (e.g. allow for Editors but not Authors/Contributors, or disallow for everyone except admins).

For now though we have serious problems with users messing up our site layout and really need to just remove the button. Admins are fine without it as they know how to manually insert shortcode where needed.

Thanks for any help you can offer!

More flexibility for in-post image selection heuristic

The "image selection" setting has the following choices:

  • Any - Will look for 1. Featured Image, 2. First attached image, 3. First image in post itself
  • Attached Only - Don't look inside post content for image
  • Featured Image Only - Only use Featured Image
  • Only show image for Media Posts - Don't show image, unless the post itself is a media post

But all the options other than "Any" are kind of fake choices in the sense that "Any" already does their job in most cases... but the sad part is that there is no flexibility for the "any" case. Personally, I almost never use the "Featured image" feature in Wordpress because my theme would display it above the post's contents, and I sometimes want to do that but most of the time not.

The problem with the "Any" approach's current heuristic is that I have zero control over what will get displayed; it seems as if it picks "the image with the newest upload timestamp" (this is a wild guess)... and I would rather like to be able to tell WP Tiles to get "the first image in the blog post [in the absence of a featured image] ", that way at least I would have more control over which image gets picked instead of trying to "plan my image uploads so that I upload the one I want last".

Either that, or a way to identify an image as being the "kind-of-featured-but-not-actually-featured" image inside a post, only for WP Tiles. Either with some tag/code in the image's inline metadata, or maybe with some setting pane in the post/page editing sidebar?

Thanks!

Uncaught TypeError: Cannot read property 'top' of undefined

I am continuously getting the following error:

'Uncaught TypeError: Cannot read property 'top' of undefined'

var tiles = $el.children(".wp-tiles-tile"), tileOffsetTop = parseInt($el.offset().top), max = 0, newHeight;

I think the error is in the following piece of code, but I cannot understand why.
I boiled down the error to line 767 with the help of the Debugger

Can you help me?

I am using this plugin with Wordpress 4.1

Edit:
I have added the following check:

$el.offset() != undefined

cellPadding left blank if 0. Nothing displayed.

Hi!

Great plugin Mike! Just wanted to let you know of this small issue. After setting the cellPadding to 0, when the admin page is reloaded, the field is left empty. If you save the page again (after changing something else for instance) the JS does not work, leaving a blank 10px space on the page.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.