The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
14 views

How to implement custom buttons into individual posts?

Is there any way that I can code custom buttons for liking, sharing, and tweeting on individual posts on wordpress. If so, how would I link the like button to like the post on Facebook and how would I ...
0
votes
0answers
21 views

How do I create a custom add media button modal?

I've created a custom media button for the admin in editing posts, but am having trouble figuring out how to create a view for the modal. I'm not trying to insert uploaded media; I'm trying to allow ...
0
votes
0answers
66 views

Woocommerce “Add to Cart” ajax

On the product category page, when someone clicks "Add to cart", woocomerce adds automatically "View cart" below this button through Ajax. I found that the script in /assets/js/frontend/add-to-cart.js ...
0
votes
0answers
132 views

Ajax Button to load more Posts into a timeline

I am setting up a timeline page for a customer and so far i have designed the timeline and i am using 2 loops to place the posts in 2 columns (left and right) where the first post is located at the ...
0
votes
1answer
361 views

Simple Button onClick to trigger jQuery function

I have looked similiar questions but any of it didn't worked I want to trigger jQuery function with onClick button, but it didnt worked. HTML structure : <button class="my-button" ...
0
votes
0answers
14 views

How to add the tab button like Add Media in wordpress post and page as the image below? [duplicate]

I want to add the button like Add Media in wordpress page and post which will help to insert the shortcode.How to insert that button ? If anybody have any idea please share.
0
votes
0answers
24 views

Hide/show radio buttons stop working on save

everyone! Here's my case. I'm developing a little widget, and I was looking for a way to hide/show different DIVs on selecting a set of radio buttons. I found the proper code and adjusted it to my ...
0
votes
0answers
27 views

How to display everytime Next and Previous button?

How i can display everytime next and previous? When i'm in first page or last page the previous and next button disappear, i want display everytime the next and previous button. Here is my source ...
0
votes
0answers
33 views

Make a button change meta_value

I would like if someone could point me in the right direction for doing this. Each post frontend should have a button that changes the database value on/off if the user is logged in. Ie.: post_id: ...
0
votes
2answers
361 views

WooCommerce: Can't change / style button colors

I'm trying to change the colors of my buttons from a default reddish color to something more pink. So I go to my child theme and insert the following code: .woocommerce a.button.alt, ...
0
votes
0answers
7 views

Creating button in meta box that downloads CSV file [duplicate]

So I try to put a button in side a meta box in an admin page editor. <input id="csv" class="code" type="submit" name="emails-download" value="Download" /> after I submit it I can't see the ...
0
votes
0answers
42 views

Delete entry from DB

i created plugin and now i want to add delete button, that user can delete one entry from DB table.. Here is my code i form.. function showresult(){ ?> <form method="post" ...
0
votes
2answers
51 views

Adding a button to a product if it's in a category, then linking to that category

I've got a site with products... and some of those products are in categories (collections). For those products I want to show a button 'view the collection,' and have that link to the category. So, ...
0
votes
1answer
162 views

How to Make admin Sidebar Menu always be Collapse by code

I have solution with js that click on the Collapse button, but this is no good solution. I want to make this work true DB with php code. I found that the table who hold this value is wp_usermeta. ...
0
votes
0answers
65 views

How to turn wp_loginout() link into button

There is a login/logout link in a widget I'm using and i really would like a button instead with the same functionality as the link. I know that the link is called via 'wp_loginout()'.
0
votes
1answer
92 views

Generate Own Custom CSS Button with icon

I recently changed my WordPress theme and noticed that all the buttons in previous theme are gone and are now looking like this on my new theme: [button link="http://.....com" style="download" ...
0
votes
1answer
967 views

Primary and Secondary Button Classes

I'm trying to style some buttons in a function (below) with the default WordPress button classes but the buttons are not being displayed (only the hyperlinked text is showing). I also tried ...
0
votes
0answers
112 views

How to add the wp-media-library button in tinymce?

That is a screenshot from the admin backend for the the tinymce editor in fullscreen view. I am implementing the editor in the frontend and I want to add the wp media library button in the default ...
0
votes
1answer
213 views

Create special button on WP Tiny MCE Posts Editor for Shortcodes

I am trying to create a special button on the Tiny MCE editor on the Post Editor of Wordpress. I want to create a button for my created shortcode tooltips. Check out my desired output: ...
0
votes
0answers
34 views

Intercepting 'Add Media' button click

I'm trying to simplify a little the media uploader for one of my clients. To do so, I'm trying to generate a new media uploader frame using 'wp.media...' on client side js. But when I click the 'Add ...
2
votes
2answers
1k views

TinyMCE Anchor Button not showing

I'm using this filter and function to display a custom, stripped-down version of the TinyMCE editor. Everything works as it should...except the 'Anchor' button will not show ('anchor')? According to ...
0
votes
1answer
93 views

Putting a space between the buttons [closed]

<?php echo do_shortcode('[su_button url="http://google.com/checkout/" target="self" background="#2D89EF" color="#FFFFFF" size="3" wide="no" center="no" radius="auto" icon="icon: shopping-cart" ...
0
votes
2answers
2k views

Function won't run onclick using Ajax

Ok, so my code is meant to be pulled from the function using the jquery code below, but it isn't pulling the code and I can't see why not. My pages code <script> var click_to_choose_user = ...
0
votes
1answer
44 views

Functions are causing errors

I'm declaring a function on a plugin's PHP. The plugin loads code at the top of each post (Post Layout is the plugins name). Cannot redeclare vote_up() (previously declared in ...
0
votes
0answers
45 views

Display multiple “save draft button” on a post edit

I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on the same way? I have a very long "edit post page" and would like to display the save draft ...
1
vote
2answers
385 views

Custom Shortcode and Button not Working after 3.9 update

I have added a new button that creates a short code but it seems that after the newest WordPress update, the button is not working any more. The button is visible but when someone clicks it, nothing ...
0
votes
1answer
2k views

Using Multiple Submit buttons to trigger customised php functions

I may be going about this completely the wrong way but bear with me... I have a long guestlist that is automatically populated using a foreach table. I would like to put a 'No Show' button on this ...
-1
votes
2answers
46 views

Button not working?

In my code add_post_meta is ignoring the button around it and is executing anyway. Why is this so? I've tried the following: <input type="submit" value="Test" id="submit"> $thisid = ...
1
vote
1answer
288 views

Paginated Posts - Social Media Buttons Share First Page URL

I currently have the HTML5 Facebook, Twitter and G+ share buttons inserted into my single.php in WordPress, so it appears on all my post pages. Everything works great until I write a very long ...
0
votes
1answer
312 views

disable publish button until condition is not met

I currently wrote a plugins to customize my wordpress website. I surprisly find it easy to do many things with hook. Now I want to make author not be able to push publish button if no category is ...
0
votes
1answer
92 views

How to include backend buttons css on frontend?

I want to include backend buttons css on frontend in a plugin? This is how its inluded in backend: ...
0
votes
0answers
174 views

Customize TinyMCE Buttons

I've always used the plugin TinyMCE Advance that lets me drag and drop which buttons I want to show in the Editor. Now I'm trying to set those using my functions.php instead. That way I never have to ...
0
votes
1answer
102 views

submit button not work

i try make 2 submit button in admin post edit page i try this function extra_fields_box_func2( $post ){ $user = get_current_user_id(); $change_user = get_post_meta($post->ID, ...
1
vote
1answer
191 views

TinyMCE: Move buttons from 2nd row to top row

I have disabled many of the TinyMCE buttons making the two rows quite empty. Is it possible to move the remaining buttons from the second row (that is displayed when hitting the Kitchen Sink button) ...
0
votes
1answer
469 views

jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default

I am attempting to create a button to show/hide comments in WordPress. I am currently using the following script: <script> $(document).ready(function() { // Get the #comments div var ...
0
votes
1answer
983 views

Change text “My Basket” in woocommerce artificer theme

I am working with the woocommerce artificer theme and there is a place in the header where it says "My Basket" and then the amount that is in your cart. I would like to change the text to say "My ...
0
votes
1answer
3k views

How to use radio buttons in WordPress plugin options using register settings?

How do I get this to save the radio buttons? It saves the checkboxes but I've tried a lot of methods and can't get it to save the radial buttons. Any help will be appreciated. Working Plugin ...
0
votes
1answer
316 views

Insert media button will always add into the same tinyMCE editor

I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
1
vote
2answers
791 views

How to load javascript file on homepage in Wordpress in order?

I am using a quicktags plugin, which was not loading on the home page, now it does, but it does it on the wrong place. How can I solve this? I want the quicktags.min.js file to load first, rather ...
0
votes
1answer
245 views

static page with buton that opens collect email form

I am PHP programmer, but I am not familiar with WP yet (I do understand some basic things). I have static page and I have to place a DOWNLOAD button on this page. Click on this button will allow user ...
0
votes
0answers
87 views

Post sharing email button with post excerpt

How can I have a button by which one can send post link and first 30 words of the article via email. I found some plugins which only send post permalinks not post excerpt. Thanks in advance.
0
votes
0answers
425 views

Use radio buttons & checkboxes for post categories

For my users, I need them to be able to have both radio buttons and checkboxes in the categories when posting. I have seen a solution to make the checkboxes when selecting a category radio buttons, ...
1
vote
1answer
393 views

Login Button CSS

I'm trying to find the Login button CSS code. I tryed this topic, but i think the path has changed after wordpress updated: http://wordpress.org/support/topic/how-to-change-the-login-button-color ...
0
votes
1answer
316 views

Adding an Archive button to posts page for administrators

I want to add an Archive button near the Edit, Quick Edit, Trash and View buttons in the posts page - http://i.imgur.com/HDZBPCy.png. I've found a nice function that can probably do just that, but ...
0
votes
2answers
220 views

Quicktags on all textarea.. Not working on plugin?

I want to put a couple of quicktags/buttons on a textarea which is outputted by a plugin called user submitted posts. I have given this textarea an unique id and read this on the Quicktags ...
0
votes
1answer
661 views

magic “MENU” button under Twenty Twelve theme

I'm using Twenty Twelve with one of my sites on WordPress and someone told me that the site wasn't appearing as it should. She told me that instead of the menu, she saw a "MENU" button, which if ...
0
votes
1answer
683 views

add button to tinymce

i have the following method to insert a button in Tinymce editor: in funcitons.php: class myclaff { function __construct() { add_action( 'admin_init', array($this, ...
0
votes
1answer
196 views

Is there a way to direct unregistered user to registration page when click a link?

everyone: this question seems pretty commmon to ask, but I did not find any answer. I was wondering, if there is a php function that I could use to direct a user to the site's registartion page, so ...
-1
votes
1answer
76 views

Facebook redirect buton

In this post, Facebook like button that redirects?, I saw a code to redirect after doing a Facebook "like". I pasted in there, but I can't figure out how to put the link I want to redirect to?
-2
votes
1answer
251 views

How can i add a random redirect button in wordpress? [closed]

I need a random redirect button just like 9gag.com I know that i need a add a rewrite rule but i dont know how to do this I tried to use plugins and other codes, but none worked.