The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
19 views

Calling PHP Titles inside Javascript Markup

I have a video gallery, and all the titles are generated by php. They are coming from my Wordpress media library's attachment titles. The lightbox for these videos, however, is customized in ...
0
votes
1answer
15 views

WordPress get_the_content losing formatting when emailed

I'm pulling the content of a post outside of the loop to send in an email like so: $content = get_the_content(); However, when I craft the body of the email: $body = 'Hello: <br/><br/&...
-3
votes
1answer
47 views

How to add a spoiler without using shortcode-based plugins [closed]

I read it is advised not to use shortcode-based plugins, so I was wondering about an alternative elegant way to implement spoilers
0
votes
0answers
9 views

Automatic format non-formatted imported posts

I imported a lot of posts, some of them are good formatted, but most of them are non-formatted, without spaces after comma or dot(s), no new paragraph. In fact this is short example of article: Hi ...
4
votes
1answer
88 views

Updating to Version 4.5 bumped my “main sidebar” widget out of place

I updated to the newest version of word press and it changed my home screen. Essentially it shifted my text to the right and as a result shifted my "main sidebar" widget downward to now begin below ...
-1
votes
1answer
51 views

How to display html code normally?

I want to display my html code as it write in edited format. Here is my edited html code. It display as following after publishing it. How to make it displayed as the following?
0
votes
0answers
15 views

Suggestions on date format for hidden field not controlled by wp-types

I'm using wp-types to create custom content templates for types created by another add-on (my event calendar). I have turned the hidden event start date field on and can access it in the custom ...
1
vote
0answers
65 views

Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly

Theme: Hemingway, Twenty-Sixteen Host: Bluehost Browser(s): Safari, Chrome OS: OSX El Capitan 10.10.5 (14F1605) Website When I try to "Edit Page" visual editor screen is blank, in both Text and ...
0
votes
1answer
43 views

WordPress menu>Custom Link: removing my link formatting and adding %20

I am pasting this url: <a href="#" id="event_inquiryToggle">TEST</a> into WordPress Custom Link menu item. When I hit save it saves it as such: http://a%20href=#%20id=...
2
votes
1answer
37 views

Why does WP not like my <a> container?

Lately I've been working on some shortcodes where all the elements the shortcode produces are wrapped inside an tag. Unfortunately this is not rendered like wanted, because of the filter wpautop on ...
2
votes
1answer
108 views

Code Blocks with WYSIWYG in blog post

Is it possible to format code in the wysiwyg editor, up to now I use Blockquotes to represent code, but my problem is that it does automatically line breaks, and I don't want to have random line ...
1
vote
0answers
53 views

How to properly format if statement with html and php

I have an if statement that has some html and php in it. The way I have formatted it at them moment seems a bit messy: EDIT <?php $audio_source = get_field( 'audio_source' ); ...
0
votes
0answers
40 views

Selectively remove empty line after line change

In WP post editor, how can I change lines without adding an empty line? I try to post this One line Second line third line But it always shows like this One line Second line Third line PS: I ...
0
votes
0answers
16 views

How to format the various types of custom fields?

So i am ready to throw in my custom post type a bunch of custom fields. All these fields need specific handling for their input and validation. Exmaples: Numeric fields E-mails WYSIWYG editor ...
0
votes
0answers
10 views

wysiwyg automatic bulletlist when pasting Ø

I have a text in a MS word file with the following text: Bla bla bla Øjne Bla bla bla But when I copy and paste that into a post, it changes to: Bla bla bla jne Bla bla bla Any way to fix this?...
2
votes
1answer
63 views

Is there a way to disable formatting shortcuts in 4.3?

Since the WordPress 4.3 version was released there are these new things called formatting shortcuts. They can be helpful but I find them mostly annoying. Is there anyway to disable these new ...
0
votes
0answers
31 views

Resetting TinyMCE custom formatting

I'm adding custom styles in a new dropdown to TinyMCE as per this page and this answer https://codex.wordpress.org/TinyMCE_Custom_Styles TinyMCE: adding CSS to format dropdown My question is - is ...
-1
votes
1answer
133 views

Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]

I need to show 7 posts of a certain category. The first needs to appear as Title / Date / Excerpt. While the others can just be Titles of the posts. Right now I am having trouble with getting the ...
0
votes
1answer
159 views

Formatting post content to exclude gallery

I have this code which takes the first gallery for a post's content, and formats it with more code preparing it for slideshow usage with css and js. $gallery = get_post_gallery_images( $post ); $...
0
votes
1answer
85 views

Reformat data within a nested array

I have the nested array of data below which comes from the Wordpress Formidable Pro plugin form entries database table. I would like to reformat it so I can use it in a Wordpress WP_list_table but I ...
0
votes
1answer
121 views

Theme does not respect spaces between paragraphs in pages

I am working with a theme that focuses on special types of posts. It seems that the author has neglected pages and as a result, paragraph spacing in pages is not respected. The next paragraph simply ...
-1
votes
1answer
19 views

Full Width Container Colour Problems

I wanted to duplicate a page and so I copied the code into a new page. Everything worked however one full-width container has a background colour that on the original page stretched across the whole ...
0
votes
1answer
23 views

Changing the code format for wordpress

So I have the following code: global $userpro; $output .= '<div class="mainpageauthor">'; $output .= '<a href="'.$userpro->permalink($post->post_author).'">'.get_the_author_meta('...
1
vote
1answer
84 views

Posting blog entries in screenplay format

Recently I've been working on a series of scripts and wanted to publish them on my site as blog entries, largely because having them just sitting on my hard drive with only a few people reading them ...
0
votes
2answers
5k views

Place page title in header?

Normally, in WordPress, the page title appears in the content area. I'd like to have the page title appear in the header area. It looks like to do that, I'd have to remove it from its current location ...
0
votes
1answer
223 views

What could interfere with changing iframe contents with href?

On one v4.1 Wordpress site the following code works as expected: <a href="http://astore.amazon.com/l0c39-20?_encoding=UTF8&node=6" target="test">Test link</a> <iframe src="http://...
0
votes
1answer
37 views

how to display the web content which contain html code prolerly?

I wrote a simple article in my wordpress which contain some html code. how to display the web content prolerly? The web to be displayed is not well formed ,how can i change it? All the html code ...
0
votes
1answer
111 views

Filter string like a slug

I have a WordPress site using pretty permalinks. I want to filter a string to that the it ends up with the exact same formatting as the url slug, does anyone know the filter or function to do so?
0
votes
0answers
289 views

echo wp_editor to screen with formatting

I've created a custom field containing a content editor (including formatting toolbar) I can save any inputs such as text, font colour etc with no worries. I am however struggling to out put the ...
0
votes
1answer
21 views

Remove all paragraph tags

I have content where the paragraphs are all messed up since the WordPress visual editor doesn't work well with pre-existing markup. I would therefore like to remove the paragraph tags, while leaving ...
3
votes
1answer
481 views

Why is wp_kses not keeping style attributes as expected?

I want to keep the style attribute. $str is just an example, here's my code: $allowed_html = array( 'div' => array( 'title' => array(), 'class' => array(), '...
1
vote
1answer
109 views

Can't format content of Rich Text Editor in Template

I use following functions to add a new rich text editor in admin . add_action( 'add_meta_boxes', 'adding_new_metaabox' ); function adding_new_metaabox() { add_meta_box('...
6
votes
1answer
2k views

Completely strip any hidden formatting when pasting into TinyMCE

In WordPress v4+, I want to remove all hidden formatting when users paste content into TinyMCE visual editor. The Paste as Text button works when users insert text from Microsoft Word but doesn't do ...
0
votes
0answers
52 views

Integrating Code into Wordpress - URL issues

I am taking a form that has been created and now trying to incorporate it into WP. The form is filled out multiple times per session. The form when filled out will generate an ID that is used to track ...
2
votes
2answers
427 views

Remove whitespace before the_excerpt();

I need to delete the whitespace that the_excerpt(); function returns me. I noticed it gives me whitespace before the whole text only where in the page images goes first and only after goes text. I ...
0
votes
1answer
39 views

the_content inside my own theme does not retain line breaks / enters like in the admin

Ok, I tried everything. the_content, get_the_content, filters, disabling plugins, Chtulu. Nothing. In my own theme, the content retains the format given in the admin editor (like bold, italic, ...
0
votes
0answers
74 views

How to prevent wordpress from autoformatting my posts once and for all?

I am using ifttt to sync my wordpress blog with my blogger site, and there is a problem of auto-formatting on wordpress's side. It likes inserting <br> everywhere when exporting posts. For ...
-1
votes
1answer
131 views

Fix issue with displaced braces( )

I have a problem with the output and placement of braces (). When braces occur in code, it is displayed wrongly in the output. Can any one solve this problem ? <?php echo "I am (developer)"; ?...
4
votes
10answers
4k views

disable WP automatically inserted line breaks after an image

I've set medium sized images to a custom size which should allow for both of the images to align horizontally within the post. (The full post width is 880px, medium images are set to 413px.) My ...
0
votes
1answer
276 views

WP Editor: Keep Bold, Underline, etc. but ignore color

Since upgrading to WP 3.9, my clients have been complaining that the new editor keeps too much formatting. They'd like it so when you paste it keeps the formatting of bold, underline, paragraph ...
0
votes
1answer
274 views

edit formatting.php in a theme so it wont get overwritten

There are some parts of wpautop I want to remove, but keep the rest. I found in wp-includes/formatting.php within the function wpautop: $pee = preg_replace('|<p>\s*</p>|', '', $pee); // ...
-1
votes
1answer
25 views

Adding a page and contents many questions with answers

I want to add page in my website and in that page I want to add question and answer regularly. And these questions will be found on the the added page only. How to do it? Do I have to add a post ...
-3
votes
2answers
3k views

Removing Author name

I want to remove the author name from every post. O am using a website in wordpress.org. and I'm using tweenty fourteen theme. How to remove the author name? Do I have to go to the Author template (...
0
votes
1answer
336 views

PHP echo stripping formatting in Advanced Custom Fields [closed]

Using Advanced Custom Fields in Wordpress, I have the following code: if(the_sub_field('company_name')) { echo '<strong>Company name:</strong>'; echo '<p>' . the_sub_field('...
0
votes
1answer
160 views

ACF loop and php formatting

The following php will loop through each page and then output ALL of the ACF custom fields sequentially. What I need help formatting is a conditional statement that places all $fields, except $...
0
votes
1answer
149 views

Wordpress excerpt with formatting and allowing selected tags

I went through your answer in post Issue with enabling formatting in excerpts in Wordpress. It works fine and closes tags so that a tag does not spill over to other posts. But I need to disable images ...
0
votes
0answers
51 views

getpost content with all formatting for admin pages

All My post usually uses various plugin based data manipulations (Like visual layout, grouping, plugin css, etc) And now I want to render a post content in my admin page. On using following code: $...
0
votes
2answers
454 views

Modify Gallery Output to render differently on a PAGE and a POST

I'm still learning Wordpress and slowly getting better, but my skill set is not up to par for the changes I am asking for. I need to customize the gallery output for two sections on my site: 1) ...
3
votes
1answer
2k views

Email sent from WordPress has html tags

Instead of: Hello, Thank you dfasdfasdfasdf asdf asdf asdfas dfs Please, feelasdf asdf asdf I am getting something like this in the email that arrives to my mailbox: <p>Hello,</p> &...
0
votes
0answers
39 views

wordpress is adding tags and messing with layout

i've searched and not found an answer specific to what i'm doing i'm hand coding a page of thumbnails with simple html and css. i'm writing it in a text editor so it's easier on my eyes and then ...