How to add a shortcode that creates an adjacent column of text in the content editor?
Shortcode do have encapsulation. Read more about that here: http://codex.wordpress.org/Shortcode_API
Shortcode do have encapsulation. Read more about that here: http://codex.wordpress.org/Shortcode_API
Using custom post types for this seems like a bad approach. Instead, create a simple option page in the admin using add_options_page, displayed in the menu under “Settings”, for example. Lay out some input fields for each piece of data you want to save. You can use the options API to read and write each … Read more
I’m not familiar with the Matisse theme, but start by looking at loop.php and see if you can find the_content(); in there somewhere. If so, swap it out for the_excerpt(); and see if it shows up as expected. If that’s the answer you need, check out the Template Hierarchy in the Codex to find other … Read more
You can use something like this: Embed this script: http://jquery.lukelutman.com/plugins/flash/jquery.flash.js Then in your functions.js (function($) { $(document).ready(function (){ $(“.flash”).click(function(e) { $(this).parent().empty().flash({ src: $(this).attr(‘href’) }); e.preventDefault(); }); }); })(jQuery); Your markup would be something like: <div class=”flash-container”> <a href=”https://wordpress.stackexchange.com/questions/40287/flash.swf”><img src=”placeholder.jpg”></a> </div> For more info check http://jquery.lukelutman.com/plugins/flash/ i hope this makes some sense 🙂 Btw: this isn’t … Read more
You Should go into index.php and change: the_excerpt(); //or similer to: the content(); If your code looks different paste it in pastebin and share a link. Best of luck, Sagive.
In /wp-content/plugins/qtranslate/qtranslate_wphacks.php, line 89, change this: // do some crazy js to alter the admin view $content .=”<script type=\”text/javascript\”>\n// <![CDATA[\n”; $content .=”function qtrans_editorInit1() {\n”; // include needed js functions $content .= $q_config[‘js’][‘qtrans_is_array’]; $content .= $q_config[‘js’][‘qtrans_xsplit’]; $content .= $q_config[‘js’][‘qtrans_split’]; $content .= $q_config[‘js’][‘qtrans_integrate’]; $content .= $q_config[‘js’][‘qtrans_use’]; $content .= $q_config[‘js’][‘qtrans_switch’]; $content .= $q_config[‘js’][‘qtrans_assign’]; $content .= $q_config[‘js’][‘qtrans_save’]; $content .= … Read more
Solution pulled out of the comments: This bug has already been in the Trac for a long time, but isn’t fixed! There is a workaround though. Use the Plugin PressPermit or hack the core as explained here: https://core.trac.wordpress.org/attachment/ticket/20114/20114.diff
If there are no manual excerpts added to the Post, WordPress picks the content itself as excerpt for that Post. You may either put the excerpts for Posts manually or apply_filter(‘the_excerpt’, ‘modify_excerpt’) and remove the unwanted text from the excerpt. The function code-structure will remain almost the same, with the exception that now you will … Read more
The only way I can think of doing this is with JavaScript to regex your parameter and apply a css style to them on the fly. Check out these jquery plugin for ideas: https://github.com/jbr/jQuery.highlightRegex http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
You might try calling the table by ID instead of the generic ‘table’. Also, wrap your JS in a noconflict wrapper like this: (function($) { $js162(function(){ $js162(“#actArchive”).tablesorter({ headers: { 0: { sorter: “text” }, 1: { sorter: “digit” }, 2: { sorter: false }, 3: { sorter: false } } }); }); })(jQuery);