Javascript button to call custom fields data

Is this something you wish to achieve? <!DOCTYPE html> <html> <body> <h1>My First JavaScript</h1> <button type=”button” onclick=”var the_id=document.getElementById(‘my_field’).value; document.getElementById(‘demo’).innerHTML= document.getElementById(the_id).innerHTML;”> Click me to display some other string.</button> <p id=”demo”></p> <input id=”my_field” type=”text”></a> <div id=”someother”>Hi there!</div> </body> </html>

Search and replace titles of posts with specific tags

//Search by tags $query = new WP_Query( ‘tag=old’ ); // Then update post titles if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); //check if title have “a new” if(strpos(get_the_title(),’a new’) !== false) : $post = array( ‘ID’=> get_the_id(), ‘post_title’=> str_replace(‘a new’,’an old’,get_the_title()) ); // Update the post into the database wp_update_post( $post … Read more

Multiple independent wordpress installs – 1 dedicated server – individual dedicated domain for each install. What is the best way to achieve this?

What you need is Virtual Servers, that way you can redirect each domain to a specific wordpress installation (see Apache for that). To achieve the db side of it, you just need to hace a prefix for each wordpress installation (that’s part of the setup). In my case I’m not using cpanel, I have an … Read more

WordPress Page Column Problem [closed]

It’s because of the extra class row wrapped. After the container class <div class=”container”> Remove this code of class row <div class=”row”> and also remove the extra closing div if added for it. The sidebar will be positioned to the right side.

Create register form plus send post

UPDATE: Call forms into front-end: <?php if (!is_user_logged_in()) { get_template_part(‘header’, ‘form’); } else { get_template_part(‘header’, ‘panel’); } ?> header-form.php content: <div class=”alert alert-dismissible fade in” role=”alert”> <button type=”button” class=”close” data-dismiss=”alert” aria-label=”Close” data-toggle=”tooltip” data-placement=”top” title=”Close”><span aria-hidden=”true”>&times;</span></button> <div role=”tabpanel”> <!– Nav tabs –> <ul class=”nav nav-tabs” role=”tablist”> <li role=”presentation” class=”active”><a href=”#login” aria-controls=”home” role=”tab” data-toggle=”tab”><i class=”glyphicon glyphicon-log-in”></i> Login</a></li> … Read more