• I am trying to use ECP content outside of the regular category pages. For example I am trying to set up a loop on my index.php that displays the existing category titles, content, and featured images, into a grid.

    The problem I get is that anytime I make a call to a category, for example category_description($id);

    All of the content generated from content-ecp.php is pushed into whatever div contains that call, with no way to specify what specific content I want.

    is there something I’m missing or is this just not possible through this plugin?

    some short codes or functions for doing this sort of thing would make this plugin worth paying for IMO.

Viewing 1 replies (of 1 total)
  • Plugin Contributor danaila_iulian

    (@danaila_iulian)

    Hi, as you can see in the content-ecp.php file, it’s using functions that output the content, not get the content, for example “the_content” instead of “get_the_content”. To be able to do what you want you will have to do something like:

    global $enhanced_category;		
    $enhanced_category->setup_ec_data($cat->cat_ID);
    echo category_description($cat->cat_ID);
    

    Let me know if that worked. Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Using ECP Content outside of “category.php”’ is closed to new replies.