broadleon
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Blank site Is theme broken?Yes both have the same ip address, however one is only “Live”.
Forum: Fixing WordPress
In reply to: php problems? Strict standards.I ended up rolling back the php version
Forum: Fixing WordPress
In reply to: php problems? Strict standards.I will have a look tomorrow when i get back to work.
Forum: Fixing WordPress
In reply to: categories wont show there posts in template.sorry don’t understand
Forum: Fixing WordPress
In reply to: php problems? Strict standards.its not a plugin its a wootheme called supportpress. Trouble is iv’e had no help from that end. Im a bit lost.
Forum: Fixing WordPress
In reply to: php problems? Strict standards.i just get this
PostID: ''
Forum: Fixing WordPress
In reply to: reverse if(!empty($customField))cheers for that
often its thats simple you can overlook it!Forum: Fixing WordPress
In reply to: update custom fields with new informationCurrently trying this but the custom field is not updating
if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['post_type'] == 'log' ) { // ADD THE FORM INPUT TO $new_post ARRAY $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_category' => array($_POST['cat']), // Usable for custom taxonomies too 'tags_input' => array($tags), 'post_status' => 'publish', // Choose: publish, preview, future, draft, etc. 'post_type' => 'log', ); wp_insert_post($post); if($pid) { update_post_meta($pid, "complete", sanitize_text_field( $_POST['complete'] ) ); } } do_action('wp_insert_post', 'wp_insert_post'); ?> <form id="new_post" name="new_post" method="post" action="" class="wpcf7-form" enctype="multipart/form-data"> <!-- complete Date --> <fieldset class="complete"> <label for="complete">complete Date:</label> <input type="text" id="complete" value="" tabindex="5" name="complete" /> </fieldset> <fieldset class="submit"> <input type="submit" value="publish" tabindex="40" id="submit" name="submit" /> </fieldset> </form>
Forum: Plugins
In reply to: make reports?Forum: Fixing WordPress
In reply to: custom form to post to custom fieldgot the title back, made a error in name of input. NOW IT WORKS!
<!-- First Name --> <fieldset name="fname"> <label for="fname">First Name:</label> <input type="text" id="fname" value="" tabindex="5" name="title" /> </fieldset>
Forum: Fixing WordPress
In reply to: custom form to post to custom fieldIve tried to keep is simple in advanced custom fields i created fname and in the form i create fname, so fname -> fname. But Ive now noticed my title field is blank on creation of new post
Forum: Fixing WordPress
In reply to: custom form to post to custom fieldMight of been a Little premature, as that didn’t work, i did find another way,
//SAVE THE POST $pid = wp_insert_post($new_post); //KEEPS OUR COMMA SEPARATED TAGS AS INDIVIDUAL wp_set_post_tags($pid, $_POST['post_tags']); //REDIRECT TO THE NEW POST ON SAVE $link = get_permalink( $pid ); wp_redirect( $link ); //ADD OUR CUSTOM FIELDS add_post_meta($pid, 'fname', $fname, true);
that didn’t work either.
Forum: Fixing WordPress
In reply to: custom form to post to custom fieldAh ! I see, Thankyou.
Forum: Fixing WordPress
In reply to: custom form to post to custom fieldSo far I have this on the form,
But im a litle lost when it comes to posting to custom fields.
<?php if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == "new_post") { // Do some minor form validation to make sure there is content if (isset ($_POST['title'])) { $title = $_POST['title']; } else { echo 'Please enter a title'; } if (isset ($_POST['description'])) { $description = $_POST['description']; } else { echo 'Please enter the content'; } $tags = $_POST['post_tags']; // ADD THE FORM INPUT TO $new_post ARRAY $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_category' => array($_POST['cat']), // Usable for custom taxonomies too 'tags_input' => array($tags), 'post_status' => 'publish', // Choose: publish, preview, future, draft, etc. 'post_type' => 'log', ); //SAVE THE POST $pid = wp_insert_post($new_post); //KEEPS OUR COMMA SEPARATED TAGS AS INDIVIDUAL wp_set_post_tags($pid, $_POST['post_tags']); //REDIRECT TO THE NEW POST ON SAVE $link = get_permalink( $pid ); wp_redirect( $link ); //ADD OUR CUSTOM FIELDS //add_post_meta($pid, 'rating', $winerating, true); } // END THE IF STATEMENT THAT STARTED THE WHOLE FORM //POST THE POST YO do_action('wp_insert_post', 'wp_insert_post'); ?>
Forum: Fixing WordPress
In reply to: Rollover/ hover text and reordering social iconsYou can do more than style a text link with css, you could add a popup image. like sexy bookmarks