Code Monkey home page Code Monkey logo

Comments (9)

victorjonsson avatar victorjonsson commented on June 11, 2024

Can you please provide me with some code and explain what you're trying to achieve.

from arlima.

ekandreas avatar ekandreas commented on June 11, 2024

Very simple content add... It is working in older versions of Arlima.

function my_special_content( $data )
{
    $data['content'] .= ' - Testing content add.';
    return $data;
}
add_filter( 'arlima_article_content', 'my_special_content' );

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

That's odd... Does the article have any content at all? It will not be rendered if it's considered to be empty (missing title, content, image and child articles)

from arlima.

ekandreas avatar ekandreas commented on June 11, 2024

Well there is content but the effect is nothing and the filter is not executed at all :-(
But if I go into TemplateObjectCreator, line 195 and modifies the filter request directly it is ok. Seems like the filter doesn't execute?

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

What changes did you do on line 195?

from arlima.

ekandreas avatar ekandreas commented on June 11, 2024

Just for test:

$obj['html_content'] = 'testing'; //$this->applyFilter('arlima_article_content', $article_counter, $article, $post, $article['content']);

from arlima.

ekandreas avatar ekandreas commented on June 11, 2024

Something with the facade?

$filtered_data = Arlima_CMSFacade::load()->applyFilters($filter, $data);

It seems like WordPress filter isn't executing at all :-(

from arlima.

ekandreas avatar ekandreas commented on June 11, 2024

Simple! It was a filter with widget suffix, arlima_template_content-widget.
I'm using lists inside widgets.

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

Maybe it would be good if the inputs in the widget form has some explanations. It's easy to forget about the filter suffix.

from arlima.

Related Issues (20)

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.