PHP code for link with text

maybe try with php DOMDocument rather than regex. I don’t think all DOMDocument methods will work with just an html fragment and not a complete document, but for your needs it may be enough: <?php $dom= new DOMDocument(); $html=”<p>Some html with a <a href=”http://foo.com/”>link</a>. Some more text and <a href=”http://bar.com/”>another</a> link.</p>”; $dom->loadHTML( $html ); $dom->preserveWhiteSpace … Read more

Some questions about WPMU [closed]

1) WordPress MultiUser (WPMU) was the term used before WP3. WPMS is for version 3 and newer. 2) Subsite posts appearing on the main site is built into BuddyPress. You will need to install BP to your multisite setup for this to work. 3) There are several plugins that achieve this either through a) a … Read more

not able to add thumbnail custom field in dropdown

I just tested this by adding the customfield ‘thumbnail’ to my post and it showed up in the dropdown. I’m using WordPress 3.2 (Multisite). What version are you using? Have you tried it without any plugins with the default theme? Does it work? As for your second question: WordPress has no global interface for editting … Read more

Menu in widget with yahoo style

Check your site source to see what classes do your category links have on them, then style these classes with CSS, like: .category-5 a{ background:transparent url(images/…) no-repeat left top; padding-left: 25px; }

Admin bar stats widget plugin image broken

While this could be caused by a variety of different issues, here are some general steps to take to try and troubleshoot it. Completely delete the plugin (deactivate and then delete files) and then re-install it. Simple, I know, but often works wonders. Try uploading the plugin files manually as well as installing from within … Read more

Standard API for rendering a date form

Could this work for you? <link type=”text/css” href=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css” rel=”stylesheet” /> <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js”></script> <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js”></script> <script type=”text/javascript”> $(document).ready(function(){ $(“#datepicker”).datepicker({ onSelect: function(dateText, inst) { $(“#thedate”).val(dateText); } }); }); </script> <table> <tr> <td style=”vertical-align:top;”> <h3>End Date</h3> </td> <td> <ul> <li><p>(Pick a date from the calendar below)</p></li> <li> <div style=”margin-bottom:5px;” type=”text” id=”datepicker”></div> </li> <li> Date Selected: <input … Read more