The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
10 views

Why would media_sideload_image() not work locally?

I designed a theme for a client that sideloads an image returned from an API. It has always worked and it's still working on their live website. My staging environment used to be a separate account ...
0
votes
0answers
13 views

Page content not saving, can not save page content

I'm trying to figure out what's wrong with the page editor at my wordpress installation. When I create a new page and insert title and content, the title is being saved but the content field turns ...
0
votes
1answer
14 views

Prepare content from a different CMS/WYSIWYG to the WordPress editor

Im currently in the process of writing a plugin that allows me to import content from a different Content Management System into WordPress. Almost everything works as I want it to: Each entry gets ...
2
votes
0answers
18 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
30 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 ...
0
votes
1answer
28 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
31 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
14 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
43 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
48 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
0answers
43 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
1answer
20 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
24 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
25 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
46 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
2answers
47 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
19 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
91 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
72 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. ...
0
votes
1answer
24 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
16 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 ...
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
174 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
162 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
158 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 ...
0
votes
0answers
57 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
31 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
26 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 ...
0
votes
1answer
219 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
65 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 ...
1
vote
0answers
67 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 ...
0
votes
1answer
312 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
148 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
1answer
100 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
46 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
492 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
107 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 ...
0
votes
1answer
43 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
68 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 ...
1
vote
0answers
65 views

Posts aren't showing up in my dashboard [closed]

When an admin logs into my site to edit a post, the list of available posts is empty -- even though there clearly are posts on the site. Do you know why this is happening or how to make the posts ...
1
vote
0answers
77 views

edit.php alter links

I want to alter the view of edit.php in the posts admin area. What I want is when a category is set ( $_GET['cat'], cat=x in the url ), add post would be post-new.php?cat=x. Is this possible? I know ...
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
2answers
2k views

How to show an error message after publishing a post?

I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post ...
0
votes
0answers
112 views

How to block action if post is “dirty”?

For a plugin I'm working, I've added a button that needs to be either disabled or show a warning if the current editing post is dirty, that is, if anything has been modified and not saved. Looking at ...
0
votes
1answer
96 views

What is the action or filter for adding information under the Permalink in Edit Post/Page?

I would like to add some HTML under the "Permalink:" in the Edit Post/Page page. Under here: So what is the action or filter?
0
votes
1answer
52 views

Create another TAG widget for posts

Currently, Posts have "tags" and in the post edit page you can add and remove tags using the widget. I would like to add another such tag-system (say, keywords) and I would like for it to use the tag ...
1
vote
1answer
135 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 ...