WordPress.org

Ready to get started?Download WordPress

Forums

OpenHook
Missing argument 2 for add_ation(), (1 post)

  1. deltamatrix
    Member
    Posted 10 months ago #

    Hello
    I am trying to show text that was placed in the "headway_before_entry_content" hook, but ONLY on single posts and not the front page or blog index. this is the code and text i used inside "headway_before_entry_content" hook

    <?php
    if(is_single() ) {
            add_action('headway_before_entry_content');
        }
    ?>
    <h2 class="Lorem-Ipsum">Lorem Ipsum
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sodales, nulla eu gravida vulputate, sapien est viverra neque, ac accumsan lorem tellus porta magna. Sed eget vehicula turpis . </h2>

    the problem is on single posts im getting an error message
    "Warning: Missing argument 2 for add_action()" what could it be?

    http://wordpress.org/plugins/thesis-openhook/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.