et3rnal
Forum Replies Created
-
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Remove space if no headerOkay so I just noticed that I can change that margin from the setup page.
can I set that value from the template ? or using code in general ?
Forum: Plugins
In reply to: [Ultimate Fields] Add media not workingOops, sorry it does work now, I downloaded the wrong one at first
Forum: Plugins
In reply to: [Ultimate Fields] Add media not workingHi Radoslav, unfortunately still doesn’t work! I think its worth mentioning im using multiple rich text editors.
and yes i would love to try the 2.0
Forum: Hacks
In reply to: Duplication functionSo this is the function I’m using (the only difference is mine has no $verify ), however I have changed it to work from the front-end instead and here is what I have done
Changed:
rd_duplicate_post_as_draft()
to
rd_duplicate_post_as_draft($post_id)Then:
removed the lines from 6 to 14and:
removed line 84 and 85 (the redirect and exit as they through the error)
and add instead
return $new_post_id;Finally I removed the add_action, as I don’t know what to hook it with instead and decided to call it manually ??
————-
In the front end file I have
if ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'rd_duplicate_post_as_draft' == $_REQUEST['action'] ) ) { //get the original post id $post_id = (isset($_GET['post']) ? $_GET['post'] : $_POST['post']); $new_post_id = rd_duplicate_post_as_draft($post_id); $page = get_permalink( $new_post_id ); }
Which will catch the request and duplicate the post and it is also where I have the JavaScript redirecting function called
and finally this is the duplication button
<a href="<?php echo site_url(); ?>/dashboard/?action=rd_duplicate_post_as_draft&post=<?php echo $post->ID ?>">Duplicate</a>
and obviously I removed the rd_duplicate_post_link( $actions, $post ) function.
—————-What I would love to do instead of all this, is re-using the add_action to have it triggered from the front-end
Thanks for your help
Forum: Hacks
In reply to: Duplication functionTried it and didn’t help ??
Is there a hook I can call the function with instead ?at the moment I used js to redirect but this is doesn’t look like a good solution.
How about the condition ? what do you mean ?
thanks
Forum: Plugins
In reply to: [Custom Post Types and Custom Fields creator - WCK] Is this possibleThanks, I wish u answered me earlier.
Forum: Plugins
In reply to: [Store Locator for WordPress with Google Maps – LotsOfLocales] Basic themeOkay so how to get that “Advanced Theme Manager addon+base theme” ? I will contact you through the website if you want to answer me from there.
Thankas
Forum: Plugins
In reply to: [Store Locator for WordPress with Google Maps – LotsOfLocales] Basic themeThanks, but as I mentioned in my post I need to change more than the css, for example I need to add classes to button and remove the pictures?
So basic theme, like what the plugin comes with but as a theme so I can modify it.
Thanks
Forum: Plugins
In reply to: [WooCommerce] Stock check before paymentanyone?
Forum: Plugins
In reply to: [Ultimate Fields] get repeater values from Post Meta typeThanks you for the great detailed replay, looking forward for the 2nd version ??
Forum: Plugins
In reply to: [Ultimate Fields] UI compatiblity with 4.1I just figured a faster way to get over the issue, simply don’t use the “drag-drop” feature, just click on the component you want to add!
Forum: Plugins
In reply to: [Postie] Custom Field with postieGreat thx :), in my case im about to ignore “postie” and use different approach to do what i want. however postie doing a great job till now :).
Forum: Plugins
In reply to: [Calculated Fields Form] form doesn't appear with ajaxOh Im still working on localhost, will comment here when I upload it. thanks
Forum: Plugins
In reply to: [Ultimate Fields] How to get 2 values at the time in repeaterHi Radoslav, thanks for the quick respond and the amazing plugin, I got help from stackoverflow by using array_chunk which works just great
<?php foreach (array_chunk(get_uf_repeater( 'clients' ), 2, true) as $array) { ?> <div class="ui-grid-a my-breakpoint"> <?php foreach($array as $document_files) { ?> <?php extract( $document_files ); ?> <div class="ui-block-b"><a href="<?PHP echo $website_url ?>" target="_blank"><img src="<?php echo $project_image ?>" title="Project image" /><div><?php echo $project_detailes ?></div></a></div> <?php } ?> </div> <?php } ?>
I’m repeating 2 text and 1 file(as url)
thanks again