Git Product home page Git Product logo

acf-code-field's Introduction

Hi there ๐Ÿ‘‹

I'm currently a Senior Software Engineer/Developer at GitHub working on GitHub Actions โœจ.

  • ๐Ÿ”ญ Iโ€™m currently working on all things GitHub Actions!
  • ๐Ÿ’ฌ Ask me about anything!
  • ๐Ÿ“ซ How to reach me: https://twitter.com/petetasker โฌ…๏ธ DMs open
  • ๐Ÿ˜„ Pronouns: he/him
  • โšก Fun fact: I once competed in the karate world championships for sparring! Won silver ๐Ÿฅˆ.

acf-code-field's People

Contributors

gilbitron avatar peter-tasker avatar ptasker 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  avatar  avatar

Watchers

 avatar  avatar  avatar

acf-code-field's Issues

Field is missing border.

It would be nice if the code field had a had a border keeping consistent with all other form fields in Wordpress. At the moment it feels more like descriptive text rather then a field you can edit.

image

This becomes confusing when it's empty, where a novice user may not know they can click in the blank area to populate.

image

Echo statement within HTML not outputting correctly.

Hello,
Love the plugin.
I have the following in my ACF field which I am using to display the raw code.

     <?php $color = get_sub_field( 'color' ); ?>
     <li class="color-tile">
          <div class="swatch" style="background-color:<?php echo $color; ?>"></div>
     </li>

However on the front end I get this:

     <?php $color = get_sub_field( 'color' ); ?>
     <li class="color-tile">
          <div class="swatch" style="background-color:___PHP6___"></div>
     </li>

How can I spit out that code exactly as it is? Do I need to escape it if it is in quotes or something?

Thanks!

Test issue

Testing 1, 2, 3


via Email

August 25, 2016 at 08:33PM

Not working with version 4.X

I just installed the plugin with version 4 of ACF, and most parts worked, except the content was not editable.

Unfortunately I did not receive any errors in the Javascript console however upgrading ACF to 5.x fixed the issue.

Thanks for a great plugin.

codemirror theme not outputting css

The css for different themes is not being output when the field is rendered inside a gutenberg ACF Block.

The wp_enqueue_style is not working properly on line 175 of the plugin in file acf-code-field-v5.php

Rows parameter

Thanks for the great plugin!

I wonder if it's possible to include support for rows parameter the native text area field has that would define the initial height of the empty field. Even while the field expands automatically upon entering text, it might be good to have a little bit of space initially.

How can we combine PHP and HTML?

I'm trying to insert some HTML, but turns out I need to link to an image using the tag. In this case, I want to ref the template directory.

In order words, can we combine PHP and HTML in the field?

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.