Covers all flavors of HTML: HTML5, XHTML and old-school HTML 4.

learn more… | top users | synonyms

1
vote
1answer
443 views

Using the echo command adds unwanted br tags to source

I am making a simple HTML form in a plugin I am writing. I was thinking of using echo for all output, but I can't seem to control the formatting of the HTML outputted (for debugging, neat looking ...
1
vote
1answer
349 views

Add a css class to a taxonomy permalink

I need to add a css class to every <a> element retrieved by the_terms() (or similar function) in order to open the taxonomy permalink in a fancybox modal window. I've been searching this whole ...
0
votes
2answers
137 views

render html no formatting

How can I get WordPress to render a page without it adding any addtional html? I'm trying to build a dialog that will work on mobile devices and I only want to show that dialog and not have any of the ...
0
votes
1answer
117 views

Shortcode displaying at the top of the page [duplicate]

Possible Duplicate: The result of a shortcode appear BEFORE page content short code output too early I got this shortcode for display my blog posts on my page, but the EXCERPT and the ...
-2
votes
1answer
128 views

Header location [closed]

I am editing a plugin, and I need to make it so that this line <h4><span><strong>100%</strong></span> which ends up making a circle with a number in it, show up in the ...
0
votes
2answers
56 views

Shortcode of a function

I got this function and i want to make the contents divs of "foreach" as return. How can i do that? <?php $args = array( 'numberposts' => 6, ...
-1
votes
1answer
180 views

Hover images and Videos

I got this code to show video loops on my blog. It's working nicely. Function.php function catch_video() { global $post, $posts; $first_vid = ''; ob_start(); ob_end_clean(); $output = ...
0
votes
1answer
78 views

Insert a Featured Video

I'm trying to put a video as featured in my theme, i mean, to be shown by the tag "the_post_thumbnail ('')", without using any plugin. Is this possible? Thank you!
-1
votes
2answers
466 views

How to create an Single-Portfolio page?

I created a portfolio page to show my works for my theme Everything is ok on my portfolio page, but when I click on an link to go to the portfolio object page, it uses the template's single.php page. ...
-2
votes
1answer
427 views

wordpress illegal string offset 'parameter' error

I am getting the error illegal string offset when creating a checkbox in the admin. my code look like this. <input type="checkbox" id="slideThre" name="custom_settings[checked]" value="1" ...
0
votes
2answers
88 views

Some images on Wordpress site are suddenly gone

I am not sure when this started happening as I have not been paying close attention. I've tried disabling recent plugins to no avail. Some of my images are just gone and there doesn't seem to be a ...
0
votes
1answer
116 views

Strange problem with HIdden Input field and WPAlchemy

I've been going Bananas with this problem for hours trying to figure out what is wrong. I have this code, simple enough and used in a similar manner many times before: <?php // Get the ...
1
vote
1answer
140 views

Add code just after Post content

I am in a bit of dilemma here so bare with me. I want to add something like this code just after the content in a post: <p>Please let me know what you think by <a href="#comment">leaving ...
1
vote
1answer
181 views

Modifying the HTML Output of Inserted Images

I've used Wordpress for years. Whenever I would add an image to an article, I manually would write out all of the HTML for every image. I also used an image lightbox plugin called Highslide for people ...
0
votes
2answers
53 views

Standard Way To Do Custom Work Within A Page?

First post here, looking forward to using this community more. I'm trying to figure out the "standard" way or "proper" way of doing custom HTML work within a particular page. For example, I'm ...
4
votes
1answer
181 views

Allowing more elements in comments via functions.php

I would like to allow certain HTML elements in my comments and have edited kses.php directly in the past. However, I have been hacked recently and replaced all the core Wordpress files and feel I ...
4
votes
1answer
94 views

Output in XHTML or HTML 5 for plugins?

I'm currently writing a plugin that displays some images - possibly with captions. So, I was wondering whether to use XHTML (<div>s and <span>s) or HTML 5 (<figure> and ...
0
votes
1answer
491 views

What file is the </body> tag located in Genesis default theme?

I need to add some tracking code for Aweber and they said to add it before the </body> tag. I've looked through all the Genesis files and cannot find it!
3
votes
1answer
542 views

Using tabs for wordpress plugin

Done my research and found this is how to call the built-in ui tabs jquery script in wp for the admin area but I'm stuck on implementing the other jquery scripts needed that I believe are built into ...
1
vote
2answers
1k views

Stop wordpress from removing HTML attributes

I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, ...
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
2answers
837 views

Strip HTML Tags From Search Results

When I make a search, if there is an image title within a img tag, it's displayed in a very ugly fashion among the search results (the whole tag is displayed and the picture too). I found this script ...
1
vote
1answer
372 views

Allow all attributes in $allowedposttags tags

I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow ...
0
votes
1answer
65 views

custom fields wordpress

I am trying to add a value assigned in the custom field by doing a post in these following steps: I make a new post, add a new custom field where i specify a name and a value. PHP I add the ...
2
votes
1answer
146 views

Publish pages/posts as HTML?

We're looking to use a plugin or custom setup for authors to create pages or posts and publish them as single HTML files. The file could be saved on the server in a specific directory or have a ...
0
votes
2answers
148 views

Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )

I have updated my permalink structure to /archive/%post_id%, but if someone uses a URL like /archive/456857 instead of the full URL of /blog-test, WordPress shows the post without giving a 301 to the ...
0
votes
2answers
122 views

Paragraphs removed when using get_post_custom()?

I'm using a custom field plugin called Advanced Custom Fields to create custom fields, but i don't think that's what's causing the problem. When i fetch the custom fields from a template using ...
1
vote
3answers
110 views

How can I hide Home in my menu in a specific page?

I want to how can I hide the home in the menu without setting show_home in functions.php to false, I just want to do is hide it in a specific page. How can I do this? I am using the Twenty-Eleven ...
0
votes
1answer
37 views

custom header navigation has odd spacing [closed]

Live site. I'm using a custom header on my blog page which features the same coding as my regular heading for nav. The nav looks fine on all pages but the blog page- the Blog button shifts left. Any ...
4
votes
1answer
134 views

Can I force WordPress to use <i> instead of <em>?

For example, Did you know that <em>hot</em> was used to mean "<a title="What is the origin of “hot” as “good-looking” or “attractive”?" ...
1
vote
0answers
210 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
210 views

plugin shortcode output

I have a plugin which uses this shortcode: [daisy] And the html output of this shortcode is : <a class="clickable">Click Here</a> Plugin is working perfect if I use the shortcode to ...
4
votes
2answers
1k views

When switching from html to visual editor the <iframe> tag gets corrupted

I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. ...
0
votes
2answers
339 views

Divs appearing everywhere in post content

Whenever somebody writes a post on our site, the Paly Voice (http://palyvoice.com) there are automatically a lot of <div> elements created. This is bad for layout, since we have a style that ...
0
votes
1answer
220 views

is ther a plugin that will hide/show content for a scheduled period of time? [closed]

We would like to post some html during a specific time on a given day of the week. For instance: Imagine a website for a TV station that wants to show what is on the air right now. I am looking for a ...
-4
votes
2answers
678 views

can't make jQuery work (change image on time interval) [closed]

I don't get it why jQuery function is not working. I read on the interned how to load jQuery in wordpress, but with no success. Can anyone help me? What I did so far: I've put this in header.php ...
-2
votes
1answer
144 views

How can I stop WordPress from catching URL's for static pages that I save on my server

I posted a question about whether it's possible to add a Page in WordPress without headers and footers. Here's that question: Add a Page without header and menus? So how can I create a static page ...
0
votes
1answer
446 views

Unfiltered html in widget title not working

function update( $new_instance, $old_instance ) { if( current_user_can( 'unfiltered_html' ) ) { $new_instance['title'] = strip_tags( $new_instance['title'], ...
2
votes
1answer
1k views

HTML code in Custom field

I'm using a custom field to display images in a slider on each post, but when I update the post after having entered the HTML code in the custom field, the code disappears. I'm assuming that there is ...
4
votes
1answer
720 views

<form> inside a metabox

I'm trying to write a plugin that allows a user to upload a video to Vimeo through the Vimeo upload API. In order to avoid trying to upload a video to a potentially shared hosting account and then ...
1
vote
2answers
105 views

How do I remove generated HTML around images in posts?

When I insert images into a blog post, wp is automatically inserted markup around the img element: specifically a div and a p (for the caption).....where is that markup being generated in wp ...
0
votes
1answer
617 views

how to convert XML from URL to HTML

I would like to know how can I, in Wordpress, convert XML URL (for example http://www.baligam.co.il/products/rss) to HTML and show it in actual. Maybe there is a plugin for this purpose? Thanks,
0
votes
1answer
613 views

Allow Access To Subfolder Of HTML For Logged In Visitors

I have a WordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in WordPress users to be able to have access to ...
0
votes
1answer
103 views

Language selection for blog doesn't exist?

I've been installing and developing on Wordpress for a while with a focus on sites in Hebrew. Recently I moved a site from a multi-site installation I have for development to it's own hosting and ...
3
votes
4answers
120 views

How do I make my wordpress page more friendly for mobile viewers?

My basic question is How do I make my wordpress page more friendly for mobile viewers? I have seen some answers such as wptouch, wordpress mobile pack, and mobilepress http ...
0
votes
1answer
146 views

Apply a Meta tag to one page only

I'm working on a IP Locator Service, and I want to display a Customized Google Map which shows the visitor's location. It works fine here, but I don't know how to incorporate it into my Blog. I've ...
1
vote
1answer
329 views

Search/Replace for editor in HTML-mode

Is there a way to do a Search and Replace for the editor in HTML-mode? Plugins I found are for the visual editor, we are working only in HTML-mode, therefore -not- appropriate for what we do. I would ...
1
vote
1answer
512 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
0
votes
1answer
238 views

Removing Line Break Tags from a Page

I am running the latest version of Wordpress on the Genesis Framework with the AgentPress theme. There is an annoying four line gap between the page title and the Wordpress Post Tab widget that I ...
1
vote
1answer
2k views

How to prevent pages from automatically adding line breaks?

I'm trying to style a form on a website, but I'm hitting a snag. Wordpress is automatically generating <br> tags when I directly edit the HTML for pages. What I've got is this: ...