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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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;