The tag has no wiki summary.

learn more… | top users | synonyms (1)

10
votes
1answer
229 views

How do I programatically empty trash?

I need to create an "Empty Trash" button inside my plugin. How would I do it using PHP code?
8
votes
1answer
1k views

Add button to TinyMCE bar without creating a plugin

I'm trying to add a custom button or two to the TinyMCE rich text editor. The tutorials I've seen so far are either outdated or explain how to do it with a custom plugin. How can I do this without ...
6
votes
1answer
4k views

Add popup window to TinyMCE buttons

I'm looking for a good tutorial on how to create a popup window with a TinyMce button that would allow the user to select from multiple options, enter text into inputs, etc. I know how to create a ...
5
votes
4answers
1k views

How can you change the 'Insert into Post' title in the media button?

Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this ...
5
votes
2answers
4k views

How to add multiple buttons to TinyMCE?

I've followed a tutorial on Nettuts on how to add a custom button to TinyMCE (http://net.tutsplus.com/tutorials/wordpress/wordpress-shortcodes-the-right-way/) It works great and all, but i want to ...
3
votes
2answers
2k views

How i can i add a split button or list box to the WordPress TinyMCE instance

I have added a custom button to the tinymce to insert my shortcodes, but I have so many and I want to make a splitbutton instead and I can't figure how. Anyone can help. Here's the code that I've used ...
2
votes
1answer
180 views

WYSIWYG – Getting the “link” button from HTML mode in Visual mode

Pretty much as the title says, I want to use the "link" button from the HTML mode in the Visual Mode in the WYSIWYG editor (the link/unlink in visual is to "advanced" for my liking). Is this possible ...
2
votes
1answer
1k views

Custom “Publish” / “Update” button &

I'm trying to implement a "publish" button from a custom post type metabox. Everything actually works fine if I either create a new button and manually call submit() or duplicate the regular submit ...
1
vote
2answers
1k views

Adding submit or update button to custom metabox?

I have alot of custom meta boxes, and the user has to scroll to the top everytime he wants to save the meta info. Is there a way to put submit buttons at every meta box that does that same as the ...
1
vote
2answers
196 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 ...
1
vote
1answer
260 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 ...
1
vote
1answer
43 views

Dont’t change active Button while I’m listing a category?

I have a simple Navigation: Blog, About, Contact. Mainsite is Blog. To keep the current Button highlighted, I used this in my CSS: li.current_page_item a{ border-bottom: 1px solid #212121; ...
1
vote
1answer
194 views

Adding another “Add Post” button to admin

I would like another "Add post" button in the admin except I am going to call it "Add voucher". It will run specific plugins that add post will not. However that is irrelivant, all I need to know it ...
1
vote
1answer
674 views

Adding TinyMCE custom buttons when using teeny_mce_before_init

I'm using the following code to produce a different TinyMCE bar to the default WordPress setup: if (function_exists('wp_tiny_mce')) { add_filter("mce_external_plugins", ...
1
vote
1answer
749 views

Adding TinyMCE buttons without removing plugin buttons?

I'm developing a plugin that I'll install for all my clients to make WordPress slightly easier to use for them. One of the things it will change is the default TinyMCE configuration. It'll add things ...
1
vote
1answer
65 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 ...
1
vote
3answers
228 views

Editing Screen: Make Update or Publish Button Follow The Page

The Problem: I am currently in the finishing stages of a premium theme I've been developing and all is mostly well. For pages I have a few custom meta boxes for adding in slideshows and other ...
1
vote
1answer
511 views

“Loadmore” button is not working in buddypress

"Load-more" button in the activity stream page in buddypress is not working for me. If clicked means , it disappearing suddenly but no more posts are loaded. <?php if ( bp_get_activity_count() == ...
1
vote
1answer
597 views

Permalink doesn't get displayed in Twitter button (Local WordPress problem?)

I'm trying to add a custom "Tweet this" button to my WordPress posts. I'm sticking to the official Twitter guidelines. Here is what I'm actually trying to pull of; I don't want the button, I want a ...
0
votes
1answer
597 views

Cannot enqueue jQuery correctly using Google CDN

The problem: I understand how to regularly enqueue jQuery UI in functions.php. My problem is that I'm using a selectmenu widget that doesn't come with WordPress by default: ...
0
votes
2answers
1k views

how to grab first link in post… and of course call it

I have been trying to get the answer to this for ages now and wondered if anyone here could help. I would like to 'grab' the first link in a post and attach it to a button/image. I have tried the ...
0
votes
1answer
138 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
1answer
503 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
127 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 ...
0
votes
1answer
158 views

Add Ajax to rating button

I have a ratings button in WordPress that outputs the number of people who rated the post. Is it possible to add the Ajax functionality so it doesn't refresh the whole page just the button number? ...
0
votes
3answers
2k views

adding a button to the media uploader

I am writing a plugin for Wordpress and am wondering how to add an extra button to the media uploader that says something like "add to album". I can't seem to find info on how other developers have ...
0
votes
1answer
80 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 ...
0
votes
1answer
85 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
682 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
502 views

Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

I want to remove the entire section that says Save Draft, Preview and Status: Draft and Visibility: Public. I want to not show it. Its ok if it is still fuctional. Attached is the part I do not want ...
0
votes
1answer
932 views

wp_enqueue_script() not working

I'm trying to add this social-network button: <a href="http://svejo.net/submit/?url=[your url]" data-url="[your url]" data-type="compact" id="svejo-button">Add in Svejo</a> ...
0
votes
2answers
535 views

Share buttons Facebook Twitter, just like wordpress.com without webservice

I'm working on a blog which migrated from wordpress.com, which now is self-hosted. I created a theme based off their CSS customizations, and everything is working. I'm looking to add the Facebook ...
0
votes
1answer
43 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
0answers
61 views

Buddypress: Display “Join Group” Button in a Post with Shortcode and auto create Group after Post is published

Hi I tried to create a shortcode to show the join/leave button using the buddypress-functions in a Post but can’t make it to work… :( What am I doing wrong? I would like a shortcode like this : ...
0
votes
1answer
20 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
48 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
22 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, ...
0
votes
1answer
171 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
322 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
0answers
60 views

Upload button is not working under add_menu_page

I was trying to add an option panel to my theme and followed a tutorial: How to Integrate the WordPress Media Uploader in Theme and Plugin Options. Everything's perfect until I wanted to show the ...
0
votes
1answer
145 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 ...
0
votes
1answer
110 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
31 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
88 views

jetpack sharing email button to send post image

Can someone help me with this? I have spent hours trying to find a way to send the featured post image along with the email sent via the email sharing button. I know the new code to get the image ...
0
votes
0answers
177 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, ...
0
votes
1answer
90 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
367 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
218 views

Creating a Link Text like Submit Button in Admin Page

I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages. I tried this but didn't work well. <a href="" cless="button-primary" ...
0
votes
1answer
495 views

How can I add buttons to a custom column in the taxonomy table?

I am working on an issue-based publishing system for a friend of mine. So far I have created a custom taxonomy called "Issue"; added several custom fields to the custom taxonomy (like "Issue number", ...
0
votes
1answer
482 views

wordpress radio button on single post page

I have two radio buttons that enable/disable the particular category posts from my wordpress homepage, I have also added these two buttons on single.php, this is what I'v done, If the post belong ...