Forum Replies Created

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

    (@screener)

    Adding core, widget and button to the dialog worked, thanks:

    <html>
    <head>
    	<script type='text/javascript' src='https://[...]/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>
    	<script type='text/javascript' src='https://[...]/wp-includes/js/jquery/ui/core.min.js'></script>
    	<script type='text/javascript' src='https://[...]/wp-includes/js/jquery/ui/widget.min.js'></script>
    	<script type='text/javascript' src='https://[...]/wp-includes/js/jquery/ui/button.min.js'></script>
    	<script type='text/javascript' src='https://[...]/wp-includes/js/jquery/ui/dialog.min.js'></script>
    </head>
    <body>
    
    	<div id="dialog" title="Basic dialog">Here is my dialog box</div>
    	<script>
    		jQuery(document).ready(function($){
    			$( "#dialog" ).dialog();
    		});
    	</script>
    
    </body>
    </html>

    Honestly not sure whether I will do this, so messy. It does work to enqueue these files as follows, fwiw:

    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('jquery-ui-widget');
    wp_enqueue_script('jquery-ui-button');
    wp_enqueue_script('jquery-ui-dialog');
    Thread Starter screener

    (@screener)

    Fair notice, I actually went back to jkovis’ solution, “add_data_timestamp_attribute_to_anchor”. Thank you again to jkovis.

    Thread Starter screener

    (@screener)

    ended up using the solution here.

    Thread Starter screener

    (@screener)

    adding asterisks to try to fool the editor …

    When I try to post this:
    *<*a class=”post-handle” href=”#” data-timestamp=”2.09″*>*my link*<*/a*>*

    The post ends up as:
    *<*a class=”post-handle” href=”#”*>*my link*<*/a*>*

    How can I stop WP from swallowing the data-timestamp=”2.16″ portion?

    Thanks,

    ted

    Thread Starter screener

    (@screener)

    I was able to add the file to an existing page under a new name, “attached_file”. This file did show up in the wp_postmeta table, and it was accessible through get_post_meta(). So, that is nice.

    I cannot, however, create a new page with the now available “attached_file” setting. I have to create a new page, then go back and edit it to included an attached file.

    To repeat, the custom field for a new page seems to be broken, to me. I can edit an existing page and add a new custom field after it has been created. This is sufficient for my purposes, but I think there is a bug.

    I’m using WP 2.2.2.

    It isn’t the database, its how you are making the calls.

    Here’s an example: I have 600+ blogs in the blogroll, and the “blogroll” page was way too slow. I limited the number of blogs to 50, and the page now comes up very quickly.

    When you work with large amounts of data, the game changes. You have to be careful about how you access the data.

    Thread Starter screener

    (@screener)

    Sorry, to access varA in the following url:

    https://myDom.com/myPage?varA=Hello&varB=World

    You just call:

    <?php echo $_GET[“varA”]; ?>

    same as nadavkav here …

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