GithubHelp home page GithubHelp logo

vitorrloureiro / vrls-wa-oxygen-pods-gallery Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1 KB

Workaround to make Oxygen Builder's Gallery to work with Pods fields.

PHP 100.00%
oxygen-builder pods wordpress-plugin

vrls-wa-oxygen-pods-gallery's Introduction

Oxygen Pods Gallery Workaround

This plugin makes possible to use Pods Gallery with the Oxygen's Gallery element. It's not the most elegant solution, but it works, considering you have Pods installed and don't have ACF installed.

Attention!

This plugin needs Pods installed to work. Without Pods installed and activated, it won't work and will break Oxygen's Gallery element.

Also, if you are using this plugin, you must not have ACF installed.

This is experimental software. Use this plugin at your own risk.

Requirements

  • WordPress 5.8 or higher
  • Oxygen Builder
  • Pods

Installation

  1. Download the plugin as a zip folder from this github repo: https://github.com/vitorrloureiro/vrls-oxygen-pods
  2. Install it manually in WordPress, uploading the zip folder you just downloaded.
  3. Activate the plugin.

How to use

To use this plugin, you only need to install and activate it. After that, whenever you use an Oxygen Gallery with ACF fields, it'll actually look for Pods fields.

To use the plugin:

  1. Open Oxygen Builder
  2. Insert the Gallery element.
  3. In 'Gallery Source', choose 'ACF'.
  4. In 'ACF Field', insert the name of your Pods Gallery.

You're done =)

How it works

This plugin works by changing the get_field() function, normally setup by ACF. It doesn't change anything related to Oxygen, WordPress or any other plugin. It simply declares the get_field() function.

It's not built respecting Oxygen's standards or anything. It should work as a workaround while a better (and update-proof) solution is developed.

Uninstall

To uninstall this plugin, simply deactivate it and uninstall it from WordPress admin area. This plugin doesn't write to the database, so there are no leftovers.

Contributors

The main code you'll find in this plugin came directly from @GrantigeOma.

I simply wrapped it in a plugin =)

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.