-
Search Results
-
Hello, I have a custom form to allow users to post from the front end to a custom post type (pending).
The form function perfectly well on other themes (I have tested on other themes I have written). The form also works fine if I include the enfold header but comment out the include for the footer. Similarly, the form works if I comment out the header but include the footer. So whats the problem….well, when both header and footer are included the form does not post.
Any ideas as to what in the theme could be prevent normal functionality?
Here is my form:
<div class="entry-content-wrapper clearfix" style="border: solid 0px black"> <form class="avia_ajax_form" method="POST" form id="new_post" name="new_post" method="post" action="" enctype="multipart/form-data"> <fieldset style="border: 0px;"> <p id="IGN" class="form_element_half"> <label for="offender_ign" placeholder="IGN">Offender IGN <abbr title="required" class="required">*</abbr></label> <input id="offender_ign" type="text" value="" tabindex="5" name="offender_ign" class="text_input is_empty"> </p> <p id="type_of_offence" class="form_element_half_2 form_element_half"> <!--<label for="cat">Type:</label> <?php wp_dropdown_categories( 'tab_index=10&taxonomy=portfolio_entries&hide_empty=0' ); ?> --> <label for="type_of_offence">Type of Offence</label> <select id="type_of_offence" class="select " name="category"> <?php // ======= Custom post types category drop down ======== $taxonomy = 'portfolio_entries'; $terms = get_terms($taxonomy); // Get all terms of a taxonomy if ( $terms && !is_wp_error( $terms ) ) : foreach ( $terms as $term ) { echo '<option value="' . get_term_link($term->slug, $taxonomy) . '">' . $term->name . '</option>'; } endif; ?> </select> </p> <p id="element_description"> <label for="description" class="textare_label hidden textare_label_avia_description">Description</label> <textarea id="description" rows="7" cols="40" class="text_area " name="description"></textarea> </p> <p id="element_image_upload"> <label for="image_upload">Image Upload</label> <input id="image_upload" type="file" value="" class="text_input" name="image"> </p> <p id="element_tags"> <label for="post_tags">Tags <small>(Comma Separated List)</small></label> <input id="post_tags" type="text" value="" class="text_input " name="post_tags"> </p> <p id="hidden_submit"> <input type="hidden" name="form" value="1"> <!-- on click, do wordpress action new_post --> <input type="submit" class="button" name="submit" value="Submit"> </p> <!-- ensure post is coming from site and not elsewhere --> <input type="hidden" name="action" value="new_post" /> <?php wp_nonce_field( 'new-post' ); ?> </fieldset> </form> </div>The form functions:
<?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['offender_ign'])) { $title = $_POST['offender_ign']; } else { echo 'Please enter the In Game Name (IGN) of the offender'; } if (isset ($_POST['description'])) { $description = $_POST['description']; } else { echo 'Please enter some notes about the hate speech'; } $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['category']), // Usable for custom taxonomies too 'tags_input' => array($tags), 'post_status' => 'pending', // Choose: publish, preview, future, draft, etc. 'post_type' => 'portfolio' //'post',page' or use a custom post type if you want to ); //SAVE THE POST $pid = wp_insert_post($new_post); //SET OUR TAGS UP PROPERLY wp_set_post_tags($pid, $_POST['post_tags']); // Image handling if ($_FILES) { foreach ($_FILES as $file => $array) { $newupload = insert_attachment($file,$pid); // $newupload returns the attachment id of the file that // was just uploaded. Do whatever you want with that now. } } //REDIRECT ON SAVE $link = "/success"; wp_redirect( $link ); } // END THE IF STATEMENT THAT STARTED THE WHOLE FORM //POST THE POST YO do_action('wp_insert_post', 'wp_insert_post'); ?>Dont know if this is asking too much, -…I just really think it would be cool to have theese features
-and just hope it to be simple soloutions !1…..http://jsa-gitterflex.apartebuild.dk/wp-content/uploads/2014/01/breadcrum-remove-blogpage.jpg
I’d like to get rid of the breadcrumbs that appear on post pages AND singlepost pages aswell (but not on the homepage in general):I’v tried some older threads but cant find a piece of code that will work on my page :-(
2….Alternatively i would be happy just to be able to control the pages wich the breadcrumblinks link to !!!
3. Would it be possible to have a backarrow-button” from singlepost to blogpage it feels like landing in the dessert the way it just end now :-)
4…..http://jsa-gitterflex.apartebuild.dk/wp-content/uploads/2014/01/scrollbar-on-blogpage.jpg
-This would be a nice touch ! -Is there a simple piece of code to do this ?
5…..http://jsa-gitterflex.apartebuild.dk/wp-content/uploads/2014/01/partner-logo-as-menu.jpg
-My client wants the images (in all there are 8) in the partner Element/logo to change on hoover and act more like a menu that shows the current page the visitor is seeing by holding on to the hoover-image. -Just like the red line jumps and stays underlining the text in the header navigation line. All 8 images have unique links to pages i dont want to see in my header/ -or footer menu !
6….. You supported me in this thread https://kriesi.at/support/topic/header-navigation-menu-and-spacing-on-blogpagepost/#post-212517
-The code provided by ismael worked perfektly but im wondering if it would be even nicer to make the whole area above the navigation textline less active just the way ismaels code did to the area covering the telephonenr. Its never goodlooking when you have mouse shoving “hotspot” in blank areas :-)
Is there an easy fix for this too ?
pagelink:http://jsa-sikring.apartebuild.dk/
All the best to you good people
Claus.Topic: Dummy Data Import Error
Hi Guys
I have installed Enfold theme ok and everything seems to be working fine but when I choose the the dummy data import button I get the following error:
Importing didnt work!
You might want to try reloading the page and then try again
(The script returned the following message:
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 84 bytes) in /home/zimoci5/public_html/webdev/wp-content/themes/enfold/framework/php/wordpress-importer/parsers.php on line 144)Any help to fix this would be great.
Thanks
JTopic: Author Information
I’ve become a guest author on a website. When I logged into the site admin panel they had a ‘Profile’ tab. When I clicked on it, it had fields for all the major social media networks and button to change my photo for the author avatar. However, when I go to Users>Your Profile I don’t see fields for the same social media networks as on the other site and there’s no avatar. Is this not included in Enfold or am I missing a function of WordPress that needs to be included?
And on another site I saw where the author photo was next to the blog post and when you hovered over it their social media contact information dropped down. How do we get that?
I used a child theme.
In my own header.php i have had a line lik this :
” class=”addthis_button_twitter”>I go to WPML strings translations to add my french text but i fond nothing…
So i try to find a string which is present ig the header.php :
echo “<nav class=’main_menu’ data-selectname='”.__(‘Select a page’,’avia_framework’).”‘ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => false)).”>”;I open (within WPML strings translations) the file where this php string ha been found and… yes it found it but not in my child header.php file but it the parent theme:
/home/sites/mysite.com/web/wp-content/themes/enfold/header.phpToo bad… :-(
Hi,
I’ve tried several plugins, but no result. I want to create a modal popup after clicking a button with the enfold theme. The modal popup has custom HTML-code (a form) and javascript (form validation) for call-me-now functionality.
I’m stuck and nowhere near a solution. Can you point me in the right direction?Example? Click on “test link” (in blue) on page http://www.voys.nl/meer-diensten/call-me-now/test
Cheers.
Bart
Hi,
I upgraded Enfold to 2.4.5 and now have some small bugs.
In the search field, the button text show the word “Array”. Also on a few buttons and icons, the Fontello icons are missing.Kind regards,
MatthijsTopic: Sidebar Widgets
Topic: Search icon
Hi guys,
i use the Enfold theme with an graphical menue (UberMenue) this works fine but:
the search button, sitting right to the navigation is reall a bit small :)
Look here: http://blog.lichttraeumer.de/download/enfold_search-stuff.pngHow can i change the dimensions of this icon ?
Br,
Martin
