Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bakedbean

    (@bakedbean)

    Thanks for that. The strange thing is whenever I remove:

    add_action(‘init’, ‘security_nonce’);
    function security_nonce(){ ?>
    <script type=”text/javascript”>var securityNonce = <?php echo json_encode(wp_create_nonce(‘you can never be too careful’)); ?></script>
    <?php }

    it breaks the css and I can’t work out why. For some reason wordpress seems to need the nonce to be created using the init hook otherwise the css becomes messed up. Your method works in so much as we can now add featured images but I then have this seperate issue regarding the css. I’ve never come across this before. The check_ajax_referer function isn’t recognising the nonce either but that’s kind of a seperate issue.

    Thread Starter bakedbean

    (@bakedbean)

    Thanks. To be honest I’m a bit of a wordpress noob and i’m struggling with the filters / actions thing at the moment although I’m sure I’ll get the hang of it. I want to display the dashboard screen under the courseware tab on the group home instead of the feed which displays on the group home by default. I have tried various actions and changing parameters by adding filters and trying to include templates etc but I can’t get it to display how I want. How would you go about doing this?

    Thread Starter bakedbean

    (@bakedbean)

    I’ve tried that but the problem still occurs??

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