Forum Replies Created

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

    (@userlearning2015)

    You saved me!
    Thanks for share your knowledge.
    For future questions:

    In functions.php I added:

    function nameoffunction( $post_id ) {
    …
    }
    add_action( 'publish_post', 'nameoffunction');

    And works great, because it runs after making the post.
    I used $post_id because in MY function I need to know the URL of the page.

    Thread Starter userlearning2015

    (@userlearning2015)

    Thanks for your soon response.
    But this call the function when charges the content of the post or entry, not?
    I want that the function run when the post or entry is created. To explain it better, is like if it was a thumbnail. If not, I´ll have to enter to the page, example /page/post/content1 to run the function and I need that runs automatically when the post is created.
    Anyway, thanks a lot
    =D

    Thread Starter userlearning2015

    (@userlearning2015)

    Can be that I´m using it in localhost with XAMPP?

    I extracted the HTML CODE of the page and found this:

    <div class="paginasnoindex">
    <p>TITLE EXAMPLE</p>
    <p>Praesent rhoncus sem sapien, in laoreet... TEXT EXAMPLE</p>
    <div class="addtoany_share_save_container addtoany_content_bottom"><div class="addtoany_header">Share it</div><div class="a2a_kit a2a_kit_size_32 addtoany_list a2a_target" id="wpa2a_2"><a class="a2a_button_facebook a2a_counter" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Facebook" rel="nofollow" target="_blank"></a><a class="a2a_button_twitter a2a_counter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Twitter" rel="nofollow" target="_blank"></a><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Google+" rel="nofollow" target="_blank"></a><a class="a2a_dd addtoany_share_save" href="https://www.addtoany.com/share_save"></a></div></div></div>

    Can be that…? Or maybe something with CSS?
    I´m trying to find the answer but I can´t.
    Thanks again!

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