Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
37 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 ...
0
votes
0answers
24 views

How can I modify tinyMCE deafult inline format?

I am using wordpress 4.0+ and I am having some issues when aligning my content. The last paragraph breaks and it displays like this after saving the article: < p style=”text-align: ...
1
vote
2answers
43 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
17 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
25 views

Why am I able to add a “formats” dropdown, but the style isn't applied?

I've created style called "smalltext" so the user can specify a paragraph with smaller text to match the theme where needed: add_filter( 'mce_buttons_2', 'my_mce_buttons_2' ); function ...
0
votes
0answers
33 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
67 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)"; ...
3
votes
9answers
605 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
94 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
82 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
22 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
1k 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
120 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>' . ...
0
votes
1answer
96 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
94 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
37 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
1answer
180 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) ...
1
vote
1answer
274 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
29 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 ...
0
votes
1answer
42 views

How to use numbered lists in the post editor?

I have troubles to use numbered lists in the post editor. I want to have a numbered list where each number could have few paragraphs inside. Something like List one some text paragraph two for ...
12
votes
2answers
1k views

Switch between Visual and HTML tab freely

So this question has been raised many times under different flags, however I'd like to present a unified thread for an ultimate solution to this issue. In WordPress, by default, when switching back ...
2
votes
2answers
3k views

Remove hidden formatting when user paste text from MS Word into TinyMCE

Around a fifth of post submissions that I receive contains ridiculous amounts of hidden formatting. For example, here is some of it from a recent post: <!--[if gte mso 9]><xml> ...
1
vote
1answer
3k views

How to Include HTML in Excerpts?

I use the Leaf theme and I can't seem to format the home page excerpts. I tried plugins and fiddling around with the theme-functions.php file but to no avail. I don't need a lot of fancy stuff in ...
0
votes
2answers
61 views

Exclude uploaded files from appearing in the excerpt()

In a post I have some text and some media attachments and when I use the_excerpt(), it strips all the anchor tags from the attachments and shows just their file names and its causing me problems as ...
0
votes
1answer
232 views

Multiple Rows in a <table> using wp_query

I am displaying posts in a grid (4 posts wide by 2 posts high). I am using a table. In order to get the content to display on the second row, I am using two wp_queries (one on each row) because I ...
0
votes
3answers
98 views

return unformatted content in encosing shortcode

I've written a little shortcode, following basic instructions on Wordpress Codex: function myshortcode( $atts, $content = null ) { extract( shortcode_atts( array( ..., ), $atts ) ); ...
0
votes
2answers
2k views

remove <p> tags from the_content

I've got a post format of Image, and I am running into an issue where the image is being wrapped by a <p> tag. I want to get rid of that tag (specifically on the single.php version) of those ...
0
votes
2answers
67 views

How to center oEmbedded content

I understand you have to paste the link that you're embedding without any code wrapping around it, but how do I force the embedded content to be centered? Currently, the default is aligning to the ...
1
vote
2answers
208 views

Unautop / Sanitize content added to a post through a plugin

I am using the SimpleReach plugin that adds some content to every post using the content hook. The content that is being added is <!-- SimpleReach Slide Plugin Version: {{srslide_plugin_version}} ...
0
votes
0answers
171 views

&#8217 instead of apostrophe and  instead of space

I'm using following codes to have a share button via email. In the mail content box, when I tried to share some posts to test using the button, excerpt showing &#8217 instead of apostrophe and  ...
0
votes
1answer
55 views

How do I display page content next to a contact form, rather than under it?

Using a stock wordpress theme and contact form 7. Lots of room on the form's right but it insists on putting everything underneath it.
2
votes
3answers
811 views

Preserve white-space in Page

I frequently post pages with code examples. However, Wordpress strips out whitespace, thus ruining the indentation and formatting of my code. So this: <pre> selector { property: ...
0
votes
2answers
58 views

Wordpress options text format

Wordpress converts my theme options text with smart quotes. I know that to remove problem from posts etc: remove_filter('the_content', 'wptexturize'); remove_filter('the_excerpt', 'wptexturize'); ...
0
votes
1answer
169 views

Add Default Wordpress Formatting To Data From External SQL Tables?

I have a number of external SQL tables that have data in exactly the way I want and I would like to use them to populate various wordpress posts with shortcodes. The problem is that I don't ...
-1
votes
1answer
39 views

Is there a way to reorder a collection of posts to read from top (oldest) to bottom (newest)?

After I complete a collection of posts, can I reorder them in reverse to read from the top (oldest post) to bottom (newest post)?
1
vote
4answers
88 views

Formatting with <pre>

I'm building a site that doesn't want any styling applied to the entry-content, because it should keep the formatting of the text. Bizarly, it works on old entries, but new entries via the front-end ...
3
votes
1answer
2k views

Create a formatted table-like menu

I've just put the site up a couple weeks ago and adding some more things to it for my friend however there's got to be an easier way to lay content out over wordpress. I've having a hard time with it ...
1
vote
1answer
239 views

Crafting WP_Query array, sort by date

question about wordpress WP_Query: 'post_type' => 'event_date' outputs dd/mm/yy ex: 31122012 I would like to order my frontend 'event_date' output not by latest WP post entry but by latest ...
0
votes
2answers
96 views

Linebreaks behaving oddly inside blockquotes

I'm using a vanilla up-to-date WordPress install. I've noticed that the visual editor, even in text mode, does not show <p> or <br> tags, and if you insert them it strips them out and ...
0
votes
1answer
156 views

E-Commerce Products Page Sidebar Formatting

I inherited a wordpress e-commerce website from a developer that only half finished the project. I do not know alot about css or php, but I have been able to play around with the coding enough to ...
1
vote
2answers
187 views

Displaying Archives List

I'm displaying list or archives using <?php get_archives('monthly', '', 'html', '', '', FALSE); ?> and my list displays December 2012 November 2012 etc However I would like to format ...
0
votes
1answer
57 views

Custom formatting

After some advice to get pointed in the right direction. I am knocking together a site for a friend who isn't the most technical minded so want to make the process easy and of course Wordpress offers ...
0
votes
2answers
2k views

Stop wordpress from adding html tags but not remove my own tags?

I've been trying to make wordpress stop adding html tags to my content but leave my own html tags alone? Tried remove_filter( 'the_content', 'wpautop' ); and installed PS Disable Auto Formatting ...
0
votes
1answer
54 views

Multiple item layout with one query

in my homepage I have content boxes with different layouts. Every box has an image and the post title corresponding to a single post. How should I use only one single get_posts() and format the layout ...
1
vote
0answers
206 views

How can I remove <br /> line breaks from manually formatted HTML?

I see a lot of posts here and elsewhere having trouble adding line breaks for some reason, but I'm trying to remove them. I'm new to WP, and I see that when editing in "HTML" mode the text is rendered ...
1
vote
1answer
65 views

How to define a custom font family for a wordpress blog that will not affect the entire site

While my related question on Stack Overflow should explain the basic CSS for this once it gets answered, how would I define a custom font family for a wordpress blog that will only apply to a ...
0
votes
1answer
406 views

How to prevent automatic conversion of dashes to &ndash;

When I put -- into a post it is automatically converted to the – &ndash; character in the output by wordpress. How can I get normal '--' double dashes in my content.
0
votes
1answer
65 views

Special Formatting for WordPress Plugin Description?

Last question, I am supplying the Description of my plugin see the part of this called "Customizing the Plugin Information Box", and I can't get any HTML format to work. It just prints off like normal ...
2
votes
1answer
192 views

Use a language specific thousand separator

I have a views counter on each post. When it reaches for example 1000, it adds a dot as the thousand separator, the result is 1.000. This is odd in my language, I should have a space as separator or ...
4
votes
1answer
1k views

Automatically decrease font size for long words

I am working on an e-commerce site in which post and product titles will need to be displayed in fairly narrow divs. I would like to set a specific font size for words which can naturally fit in the ...