Keywords (anycontent.php) on category pages Keywords (anycontent.php) on category pages
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Keywords (anycontent.php) on category pages

Started by masuimi, November 15, 2013, 08:14:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

masuimi

Hello,

Is it possible to display the anycontent.php Keywords on category pages?

If not, would it be possible to include a feature in a future update where we can display the anycontent.php Keywords on category pages? Right now, I have it on the homepage of my gallery and it works great!

Thank you for your time

ΑndrĂ©

Have a look at the bottom of index.php, you'll find
                case 'anycontent':
                    if ($cat == 0) {
                        ob_start();
                        /**
                         * Any php code or HTML can be put in this file and will be displayed
                         */
                        include('anycontent.php');
                        $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
                        ob_end_clean();
                        echo $anycontent;
                    }
                    break;


I haven't tested that, but it should work as requested if you replace it with
                case 'anycontent':
                    ob_start();
                    /**
                     * Any php code or HTML can be put in this file and will be displayed
                     */
                    include('anycontent.php');
                    $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
                    ob_end_clean();
                    echo $anycontent;
                    break;