The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
11 views

Publish post when when edit post form submitted with enter / return pressed on keyboard

How do you publish posts when the post edit form is submitted with the enter/return key on the keyboard. By default WordPress saves the post in draft status. To provide some background, I have an ...
1
vote
0answers
19 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
2
votes
1answer
1k views

add button to post edit page when post_status=publish

Question what hook can be used to add a custom button to the 'Publish' metabox on the 'Edit Post' admin page? Use case I have a hand-rolled custom post type called ash_newsletter. I want to add a ...
0
votes
1answer
23 views

Add data to post edit page, when post is published

I need to customize the "post edit page", for a custom post_type, but to keep things simple let's say it's on the post_type post for now. When the post status is published, I need to run a PHP script ...
0
votes
0answers
20 views

Prevent WP from wrapping html in caption shortcode after 'image_send_editor' filter is applied

In my functions.php I have cooked up some functions to filter the attachment output code, when an attachment is sent to the editor. function filter_image_send_to_editor($html, $id, $caption, ...
0
votes
0answers
11 views

How to allow “List View” for adding images to a post

I've looked around quite extensively for this, but can find neither discussions, code snippets nor plugins which deal with this issue. Basically, when you're on a post and want to either "insert ...
0
votes
1answer
29 views

What is the action or filter for changing permalink in Edit Post/Page?

I know about edit_form_after_title hook but what about changing the permalink. How does WordPress creates permalink because that permalink and the one that get_the_permalink returns doesn't match? ...
0
votes
0answers
36 views

Wordpress Child Categories Display as Parent Categories

I used Custom Post Type UI plugin to create a custom post type (for example, people) and a custom taxonomy (location). I populated the custom taxonomy with 50 US states using BulkPress plugin. Say I ...
0
votes
1answer
18 views

Extending the “Add Media”-Dialog … how do I finally insert something to the Post?

I'm developing a plugin, which extends the "add media"-Button in the Post-Editor. I found an example (I think it was nextGen Galley maybe) where wp_iframe is used in the add media dialog. For some ...
0
votes
0answers
31 views

Admin cannot edit posts if he's not the author

I've a problem on my website. There are several users. Every user can create posts and modify them. But I want the admin to be able to modify the posts too. In the back-office, when i click on the ...
0
votes
0answers
17 views

How modify gallery shortcode output for admin side

I've been modifying the gallery shortcode output, with remove_shortcode and add_shortcode function. Which works great for the front-end side. But in the admin side, when I edit some pages, the ...
0
votes
0answers
24 views

Custom Page Editor page + adding it as a Pages submenu in admin panel

I don't think the title of this does my question justice, so I will elaborate. I want to have the standard page editor, but with the defaults changed to be custom 'defaults'. For example, instead of ...
0
votes
1answer
39 views

How to make shortcode which returns HTML?

I need to make a shortcode button to TinyMCE editor which, in the moment i click it fills up the content part with HTML. When i click on button i need something like: <div> ... </div> ...
0
votes
1answer
298 views

Can't create posts with WP DB Abstraction Plugin

I have a WordPress site moved to Azure web site + Azure SQL using database abstraction plugin After that migration I'm not able to create new posts. When I click Save Draft it redirects me to the ...
0
votes
2answers
36 views

Add a label to the editor?

I'm working on a custom post type. I have the editor enabled but the content that will go in that box is secondary and it isn't clear what should be typed there so I want to add a label for the ...
0
votes
0answers
18 views

TinyMCE Custom Styles or Shortcode Components?

One of the WordPress theme projects I'm working on for a hiking and travel blog adds additional facts and notes in small info boxes about the particular topic being discussed. For instance, on a post ...
0
votes
2answers
85 views

&nbsp when I use ENTER for skipping line

I don't know why when I'm using "Enter", that add &nbsp; in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code &nbsp; makes this code : <p> � </p> ...
1
vote
1answer
68 views

Create default_content layout template based on post id

Background What I am attempting to do is create a custom post layout template for a specific post (or even page) that the WordPress user can simply insert content using the WYSIWYG editor without ...
0
votes
0answers
31 views

Editing posts using user credits

I am looking for a cleaner or better way to accomplish the following. Credits are stored as user meta _credits (int). Users can only edit pages, posts, custom post types if they have credits left. ...
2
votes
3answers
3k views

No Edit / Delete Links for Custom Post Type?

I've created a custom post type for "testimonials" as well as rearranged the edit post display with custom columns for that post type... Everything works as expected EXCEPT for the fact that when I ...
0
votes
1answer
20 views

Add default page editor to an admin settings page

Is there a way to get the standard page editor into a custom administration settings page? I have been able to add other textarea boxes with toolbars, like TinyMCE/CKEditor but not replicate the exact ...
0
votes
1answer
15 views

creating different edit screens for different roles

I have created a custom post type and custom role, created the proper capabilities and assigned them so the new role and see and edit their own ctp's entries... but I'd like to create a customized ...
1
vote
1answer
124 views

Post editor loads empty

I am running WordPress 3.8 and I recently switched server, so didn't realize when the problem creep in but most likely its the server change and I need some help figuring it out. When I open post ...
0
votes
0answers
8 views

Deactive certain plugin on post edit screen

is there any hook to deactivate certain plugins (which i choose) when I'm try to edit posts? I have plugin conflict and I want to deactivate one plugin when I edit custom post type items. Every other ...
0
votes
1answer
1k views

Hide tag and category boxes from the post editor

I want to hide the tag and category boxes from the post editor, the theme I've just developed doesn't need them, thus I want to hide them. I am aware they could be hidden using the 'screen options' ...
0
votes
1answer
161 views

How-to stop wordpress from saving utf8 non-breaking space characters

Anyone have a tip on how to prevent Wordpress from saving utf8 space characters (= hex C2 A0) in DB by replacing with space \x20 ? Is there a hook that can be used to do a replace before saving to ...
1
vote
2answers
153 views

Should the WP post editor B (bold) button be inserting a <b> tag instead of <strong> in HTML5?

Using WP 4.0. I thought that the html5 schema was supposed to be turned on by default. That would mean that clicking the B (Bold) button would generate a <b> tag, rather than a <strong> ...
2
votes
2answers
150 views

Consolidate Metaboxes into 1 Big Metabox

I have a post type with 7 (count it SEVEN!) taxonomy tag boxes. By default, the only options to display these metaboxes are - 7 small metaboxes on the right side stacking or turn these tag metaboxes ...
1
vote
2answers
2k views

Post/Page Publish/Update button not clickable once I make an edit

I open a page and make an edit and the update button becomes grayed out. I have to copy all page content, refresh the page and paste it back in the page, only then does the update button become ...
0
votes
0answers
53 views

Featured Image saving before updating post

Tell it's not just me; I'm almost sure it isn't, but I couldn't find anyone else talking about it. I disabled any plugins to confirm this. When editing a published post, adding or removing the ...
0
votes
0answers
39 views

Default metadata for Custom Taxonomy when using Add New Item on Post Edit

I have created a custom post type, that has a hierarchical custom taxonomy. This taxonomy has extra custom fields tied to it that save to a custom table in the DB. These fields have default values set ...
0
votes
0answers
30 views

How to add an image uploader to shortcode generator?

Creating a quote shortcode which requires an image. I managed to find shortcode generator tutorials which inserts simple stuff like tabs, columns or just quotes without images. How do I add and use ...
0
votes
0answers
29 views

Prevent stripping MathML tags on post save

I am trying to add MathML markups in wordpress custom post. But, it is stripping all MathML tags when I hit the publish button :( I have disabled "wpautop" and "Visual Editor". These are not helping ...
0
votes
0answers
25 views

Limit categories visible

How could you limit the categories displayed for a certain role when adding a new post? I would like to only list a few categories, but would rather not prevent them from seeing these categories ...
14
votes
3answers
8k views

How can I put a custom meta box above the editor but below the title section on the edit post page?

I have a custom meta box for a custom post type that my client wants placed between the title/permalink section and the post editor in the admin panel. Is this possible and if so is there a ...
2
votes
1answer
304 views

2nd button row from WP Super Edit or TinyMCE Advanced doesn't show to 2nd admin

I'm currently using WP Super Edit. But the same problem persists with TinyMCE Advanced. This is how it is configured: http://i.imgur.com/4PyXi.png http://i.imgur.com/YniBi.png ...
12
votes
2answers
467 views

Unable to select an old date in wordpress

I am unable to set the year below 1899 for a post. If i set year below 1899 it is set to the current year automatically. I have purchased the Timeline theme and asked in their support forum. They ...
0
votes
1answer
214 views

Fatal error when accessing Pages in WP admin (and problems editing any pages)

I have a site that's been going for about 4 years with several hundred pages. I've had strange problems when accessing the Pages section (to choose a page for editing) and while in Page editing. These ...
0
votes
0answers
62 views

How to add authors contact info to author metabox in post editor?

By default the Author Metabox on the post editor displays only a drop down to set the author of that respective post/page. I'd like the author's contact info (email address) displayed on the Author ...
0
votes
2answers
141 views

Automatically set page order on create page

Is there a way to automatically set page order to the last order number upon creating new pages instead of having it set to 0?
1
vote
0answers
66 views

Embedded tweets get wrapped in <p> tags and fail to load

So WordPress should embed tweets in posts just by pasting the tweet url, like so https://twitter.com/cnnbrk/status/496020289277689858 This works great, if you manage to avoid having the url wrapped ...
1
vote
1answer
98 views

Custom Post Type Capabilities

I have a custom post type which I want authors to be able to edit others posts but no able to delete others posts. My code as follows: $labels = array( 'name' => __( 'Book', ...
0
votes
1answer
43 views

In the Edit Post page how do I modify with jQuery the status select list?

Here is my JS: jQuery('#post_status option[value="draft"]').text('Approve'); I simply trying to modify the text inside the option element in the status select form element in the Edit Post page. ...
4
votes
2answers
463 views

How to add editor's name to entry meta byline?

I have one multi-authored blog site and a few editors. What I want is to display the name of the editor along with the author's name in a post, so that it would read like: Posted by , Edited by Is ...
0
votes
2answers
105 views

When I click edit on a post, all the content disappear. Does anyone know how to fix this?

I am working on a site: greatlakesecho.org When I try to edit a post, the content just disappears from the visual editor. I am running the latest version of Word Press but this happened on the ...
1
vote
2answers
226 views

Custom fields attached to a page template only show on edit screen when page is saved

When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish). Ideally, the custom field should show when I ...
5
votes
1answer
702 views

How do I position meta_box on post edit screen after the title?

I am displaying a div in the Edit Post screen using add_meta_box(). This function provides very limited positioning options via "priority" and "context" params and these are not sufficient for my ...
0
votes
0answers
51 views

Use Custom Field As Meta Box In Post

I recently asked on this forum how to create a beta box using custom field, which was answered but with a not so right answer, but it helped me. For example, there's a custom field that I use called ...
0
votes
1answer
42 views

Edit box scrolls back to the top after updating post

I've been quite annoyed by this. On post edit page, once I edited something in the middle of the page and hit Update, the whole page reloads and the edit box starts from the top again and I have to ...
0
votes
1answer
67 views

Text editor has problem with having '<html>' in a post

I'm trying to create a post on a WP 3.8 blog using the text editor that includes a <pre> tag with some JavaScript inside it. This JavaScript code happens to have a comment line that contains the ...