I’m working on a WordPress site and I use the following code to show posts in two columns on archive and category pages: <div id="post-<?php the_ID(); ?>" <?php post_class(...
I use a theme to build an portfolio. I´d like to add an pinterest “pin-it button” into the fuctions.php: Facebook, Google+ an Twitter were done, just the pinterest won´t...
I have a few posts where there are some code segments. When I try to make small edits in the post, it opens in the ‘Visual’ mode and all...
I have this piece of function in my functions.php file: function user_content_replace($content) { $sentences_per_paragraph = 3; // settings $pattern = '~(?<=[.?!…])\s+~'; // some punctuation and trailing space(s) $sentences_array =...
I’m trying to integrate a 3rd party API with WordPress. I fear this is above my head. I was this code but I’m not exactly sure how to make...
I have worked with Ruby on Rails and I was looking for some code that did something close to the wonderfull RoR’s ActiveRecord. I stepped by this site. Its...
I am a senior in a college computer science program, and therefore have a decent knowledge of code and several languages. However, I am doing a summer internship type...
I am attempting to post some java code between pre tags but the angel brackets get removed. For example: private HashMap<String, HashMap<String, Integer>> featureCounts; becomes private HashMap> featureCounts; Is...
When working with a worpress site with lots of custom post types and lots of page templates, my theme folder is looking messy. What are the accepted best practices...
To WordPress’ visual editor (TinyMCE), I would like to add a button that adds four non-breaking spaces when clicked, like this: I found some plugins that add buttons...