Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I get “undefined is not a function”.
    Valid html code – check
    Modal ID matching jquery selector # – check
    I tried jQuery and $ – no dice
    bootstrap.js (full code, min) loaded AFTER jquery – check

    Any recommendation?

    Thread Starter gallantfish

    (@gallantfish)

    Oh, I didn’t know I can name it anything.
    I followed WP codex and anyone is told to name it editor-style.css.

    Well, the css loads directly in a logged in browser, in an environment that proccess it by JS TinyMCE. I can’t predict that far but I guess it’s not an obvious place where security has been reinforced.

    Good to know that someone else has the certainty 🙂

    gallantfish

    (@gallantfish)

    The plugin and function above doesn’t work with the current version of wordpress (that function is already defined)

    Renaming it didn’t make it work.

    This one doesn’t work either 🙁
    http://wordpress.org/support/topic/disable-new-user-notification-to-admin

    I created my theme myself, so I know there’s nothing messing with emails 🙁

    Any other suggestion?

    Thread Starter gallantfish

    (@gallantfish)

    This was supposed to be posted under Visual Form Builder Pro. I don’t see it so though.

    Thread Starter gallantfish

    (@gallantfish)

    I fixed the fields settings thing, but it still wouldn’t export.
    If it useful to mention it, I renamed the wp-content directory, but I didn’t find any occurrence of “wp-content” hardcoded in the plugin directory, which means is correctly coded, using my global variables.

    Thread Starter gallantfish

    (@gallantfish)

    Ok, it works.
    (above I meant the Codex page for Globals*, where says $pages is an integer 🙁 )

    get_the_content() DOES use the already-retrieved info, not loading “again” from the as I thought. It just does it through the global “$pages”.

    There’s no filter for that, but I can change the global before it gets to get_the_content()

    I learned a lot 🙂

    Thread Starter gallantfish

    (@gallantfish)

    Correction:
    $more: True = the part after the teaser should not be stripped.

    ( I find so confusing when people mix up “display” and “tag” and “hide” and “link text” and “show more” and “excerpt” and “teaser”…

    Thread Starter gallantfish

    (@gallantfish)

    Oh, I just noticed Inside post-template.php line 183, $get_post() is used…
    $post = get_post();
    but $post not globalized for it to get it 🙁

    I’ll try changing the global $pages, and see if get_the_content() takes it from there.

    (I was confused with the codex page for $pages, which said it was an integer, and I was blacking out that part of the code in my brain, not seeing it IS using the content stored there)

    Thread Starter gallantfish

    (@gallantfish)

    It will get the data from the cache instead if it’s available. It has no way of knowing if the_content is available outside of it’s scope

    Can you help me figure out why it’s NOT being used?
    It shows available as WP_POST object, but not used.

    This is the test.

    function my_pre_getthecontent_function($post = false) {
    	global $post;// deleting this makes no effect
    	$content = "CHANGED POST";
    	$post->post_content = $content;
    
        return $post; //returning array( "0" => $post) doesn't work either
     }
    add_action('the_post', 'my_pre_getthecontent_function', 10);
    
    function test_post_content ( $content ) {
    	global $post;
    	echo '<pre>'; print_r( $post ); echo '</pre>';
    	return $content;
    }
    add_filter('the_content', 'test_post_content', 10);

    If you test this code (in functions.php) in a single post page, you’ll see the “CHANGED” content is not showing with with the_content().

    I’m sure I’m missing something, but what?
    I tried setting blank $post->filter, and to “raw”, just in case, no success.

    I can’t filter “the_content” because at that stage the more tag has been already not found and I can’t replicate the behavior as you said (without creating a whole new get_the_content() with who know which default things come with it)

    To prevent other plugins fail with my mods, I prefer to pass the more tag the earlier possible, so everything else founds it and work as expected.

    So I NEED to find a way to make get_the_content() to get my modified $post.

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