Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter praveen_khm

    (@praveen_khm)

    Thanks for the response. It still does not work. These are the things I have done:

    Added the below code in wp-config.php

    define('W3TC_DYNAMIC_SECURITY', 'mysecurestring');

    In Header.php, I have added this.

    <!--mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
    	mytheme_extra_hotline();
    	mytheme_extra_cart();
    	mytheme_extra_account();
            echo(rand(10,100));
    <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->

    Since I am using a shared hosting, changed Disk Enhanced to Disk Caching method and enabled “late initialization” on the Page Cache settings page.

    Added “mfunc” and “mclude” to Ignored comment stems under minify.

    Whatever I did, it still did not refresh the code within mfunc. Lastly, I changed Expires header lifetime to 10 seconds and now it updates. However, the complete page is refreshing every 10 seconds.

    Is there some setting I am missing?

    Thanks,
    Praveen

    Thread Starter praveen_khm

    (@praveen_khm)

    Any help here??

    Thread Starter praveen_khm

    (@praveen_khm)

    Thanks a lot. This is exactly what I was looking for.

    Let me try this code (might end up with 16-18 if statements). I am sure there is no particular limit in wordpress for the number of ifs and elseifs.

    Thanks again fwoan.

    Thread Starter praveen_khm

    (@praveen_khm)

    Thanks for the reply fwoan. Let me explain the problem. I have a free theme I am using and in admin panel, it already has options to create menu and submenu’s. Now if I follow your suggestion, should I discard the theme’s admin options altogether? The reason I am asking is the categories might change in future (might add, rename, or delete categories). Is it better to create a new theme from scratch in that case (since trying to edit the parent theme seems like it breaks).

    Thread Starter praveen_khm

    (@praveen_khm)

    you can change permalink structure so “year” isn’t part of the structure.
    Pages can have parents, so you would just created a page for each “folder”. Instead of leaving it blank, you might want to add links to all the pages in that “folder”. Alternatively, you could just install a subpages plugin to dynamically display the list of subpages for each folder page.

    Thanks for the response. I feel I am little confused with the answer. Suppose I have a folder by name “Book” under root folder. What I need is a page with url “…/Book/Book.php”. Now there are many folders within Book and each of it has a php page. The structure would be “../Book/Pages/page.php”. Is this feasible?

    If yes, how can I achieve it? Manually create folders within root folder and then in permalinks add this address? Or create a page somewhere and manually move them from that location to this location? Excuse my ignorance, but I am very new to wordpress and been working like this with html all these days.

    Thread Starter praveen_khm

    (@praveen_khm)

    Bump…

    Thread Starter praveen_khm

    (@praveen_khm)

    can somebody at least confirm that this is not possible please?

    Thread Starter praveen_khm

    (@praveen_khm)

    anyone to help please?

Viewing 8 replies - 1 through 8 (of 8 total)