Tagged Questions
1
vote
1answer
20 views
Make WordPress size and name images for Retina.js
I'm a huge fan of the way retina.js works for high pixel density displays. Essentially, when it's loading image assets (via <img> or css image) it will check if there's a @2x suffix version of ...
0
votes
1answer
394 views
How to use wp_editor(); in functions.php then retrieve content in the template
I want to use wp_editor(); (custom editor)
I've tried several methods but I am lost and I can't get it to save the post and retrieve the content in template
How to edit posts with the new wp_editor ...
0
votes
1answer
99 views
The_excerpt() doesn't parse <!--more--> - how to change that?
I'm using the_excerpt(); in blog.php file (post listing page) and it doesn't recognize <!--more--> if "Excerpt" field is empty and it grabs the beginning of the content as excerpt.
This issue ...
2
votes
3answers
482 views
Pinterest Integration Using functions.php
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 work.
Can´t found the the ...
2
votes
2answers
642 views
Unable to get_the_content(); of a post in Wordpress via AJAX
I'm trying to ajaxify my Wordpress theme and I use the method described here and I'm now trying get_the_content of post via functions.php. Using jQuery, when I do alert(data) I get the 'title' echo ...
0
votes
1answer
144 views
Tags break custom Excerpt function
Quick question here. I have a function that echoes out the post-type's content (if none available, the excerpt). It looks like this:
function era_excerpt($post, $length = 11, $ext = ' ..') {
...
0
votes
1answer
264 views
Is it possible to display a DIV to not logged in users and then change it for users who are logged in?
Basically I'm putting together a magazine site that wants a strong focal point on the homepage for users who haven't signed up, if the user is logged in we need this content to show something else, is ...
-1
votes
1answer
248 views
Integrating custom API for post content into Admin interface & Public Website [closed]
EDITED question to be more specific and added bounty in hopes someone has a solid coded solution:
So, here is an interesting task I have been trying to find a solution for. I have added a bounty ...
1
vote
1answer
1k views
Edit the_content function
I want to edit the default function the_content(). I know i can add_filter('the_content', 'with_my_function') but im having trouble outputting the old content with mine.
Heres an example of what im ...
6
votes
2answers
711 views
Extract image from content and set it as the featured image
The problem:
I'm posting from the Wordpress iPhone app. When adding an image, the image shows up in the description itself, which I don't like.
What I'm trying to do:
Remove the image from the ...
0
votes
2answers
542 views
Remove image from post_content on save_post
I'm trying to setup a function in functions.php that removes an image from the post_content on save. Everything works up until the time I'm trying to save the content, the page just hangs and I get a ...
0
votes
1answer
283 views
the_excerpt function not showing image
I am having posts with images.In single post page all
contents displaying well with image. But in blog page , the content only displaying not an image.
How can i make it to display
For example,
...
0
votes
1answer
162 views
Single dash converted to double dash
As the title says, if a single dash is used with a space between each side eg. 'Die Hard - Action Film' is written in to a WordPress post, once published it comes out as 'Die Hard -- Action Film'. If ...
1
vote
5answers
2k views
Display post shortcode content in the sidebar?
I need to display images and other content in the sidebar depending on a page. Pages are added dynamically and information that need to appear in the sidebar is different for each page. So I can't ...
0
votes
1answer
670 views
Function to get content by ID
I'm trying to get text only content of posts by ID. I modified this function as follows, but at the moment it returns nothing. I cannot see what's wrong with it.
function get_the_excerpt_id($post_id) ...