I'm looking to use the 'Social' plugin from MailChimp on a Wordpress blog. Everything is setup fine and it works perfectly, except one aspect.
When I use the 'Broadcast' feature or leave a comment and post to Twitter/Facebook it creates a URL with the 'Post-ID' http://domain.com/blog/?p=1 instead of using the 'postname' http://domain.com/blog/post-name/ which I setup in the permalinks section of Wordpress.
Try changing in file "/wp-content/plugins/social/lib/social/service.php" the line (appears only one time in the file)
$url = wp_get_shortlink($post->ID);
for:
$url = get_post_permalink($post->ID);
You must test carefully that the change doesn't affect any other functionality, maybe contacting to the plugin creator.
You can use the built-in filters to create plugin that will adjust the URL format, however the ?p=123 style URLs are the default (and highly recommended) to help get more meaningful content into the broadcast.
Even if you manage to match the url's and broadcast it. It still does not works.
The problem is only when you use a featured image to broadcast it.
It works better (not 100%) for a post that is broadcasted without a featured image.
The problem is only with facebook. It does a good job with twitter.
Related
So I am trying to do this and I don't know how. I have a wordpress powered website with a plugin called "frontier-post" in it. This plugin makes a new front-end post submission. The way to use it is to put the shortcode "[frontier-post]" in any post in my wordpress page and that page turns into this.
I want to make a custom page for myself, where I can have the content created by this plugin there too. So I do not want it to be a post in my wordpress, but lets say at a corner in the custom page. I have searched and found these but the suggestions there would not work. I am able to include the wordpress so that the custom page has access to posts, etc. but even using this
echo do_shortcode('[frontier-post]');
would not help me. (even if header is included)
These are the similar things i found:
Wordpress/PHP - How to use plugins outside wordpress-powered pages?
Need Help for my Custom Page Template
I would really appreciate it if you could help me with this.
If you are creating a PHP page that isn't going to be rendered inside WordPress, you can't use a Plugin of the WordPress engine to accomplish what you are wanting to build. (As the accepted answer to one of the pages you link to indicates).
Instead, you might be able to use the json-api plugin and have your custom page query it for the data. While it won't render the shortcode, it will give you the raw data to work with.
http://wordpress.org/plugins/json-api/
Edit:
Based on a comment, your do_shortcode should work...just try it without the square brackets.
I'm wondering if it is possible to write a plugin which shows nothing but only let the visitor access the feed url. The admin page should be accessible by the administrator as well.
The background of this idea is that I've written a custom feed generator and implemented it in a WordPress site. Since the site is only for the feeds, I'd like to make the site invisible to the public except the feed outputs.
I'm aware that there are Maintenance Mode and Members Only plugins. The problem is that the maintenance mode prohibits feed access and the member only mode bans general visitors.
So I'm wondering if there is a simple way to do this. I'd like to avoid editing mod_rewrite because I'm planning to make it as a plugin if possible. If it is not realistic to do it without mod_rewrite, I will try editing mod_rewrite.
Thanks for your input.
If you never want anything to render this could easily be fixed using the template_redirect hook. For example:
function stop_rendering() {
exit;
}
add_action( 'template_redirect', 'stop_rendering');
So, basically you don't want the theme to render? What about /categories, /tags, /archives etc.?
If that's all you want to do, you could just create a blank theme with the style.css (blank besides the theme info comment block) and the index.php template.
I would like to know which WP plugin should I choose to allow every user who come to my page to add a post to my page form the frontend.
He just click on a button add a new post or something like that. Than a form appear and he inserts the title and uploads an image.
After that its published as a post.
Is there a solution like this available for WP?
Thanks in advance.
From what I know, there is no existing plugin doing it as you need. Even if it existed, I wouldn't recommend it's use for security reasons; it is hard to follow every uses and make sure visitors would post the way you want.
You are definitely better to code it by your own, and it's quite simple using the wp_insert_post function. This function will work anywhere you put it inside Wordpress (no need to build a plugin from scratch), so a simple form with validation would make it.
Hope it guides you on what you're looking for.
I need to load a single Wordpress post into an iFrameā¦
How to do this?
Many thanks.
A starting point, I tried this a while ago, and wasn't impressed by how it interacted with the theme.
http://wordpress.org/support/topic/can-i-put-an-iframe-on-a-wp-page
Or, install a plugin that does this for Posts/Pages, and use it to see what it generates, and modify your code in index.php to work properly.
http://wordpress.org/extend/plugins/embed-iframe/
Either way the url to get to your post should be included in the iframe src.
All my blog post URLs currently look like this: http://www.HeyItsMyBlog.com/?p=368
I want to change the URLs so instead they look like http://www.HeyItsMyBlog.com/2010/11/new-kittens-omg/
This is an easy change in the WordPress admin panel, but there are a bunch of people who have linked to my currently-formatted URLs around the web. How can I make the transition and ensure that it won't break the old links?
The latest version of Wordpress automagically interprets URLs of the form ?p=777 by redirecting the user to the corresponding pretty URL. You don't need to do anything special beyond enabling pretty URLs in the admin panel.
It works either way (when you set the permalink to your desired one). Test it of course. And oh, this question belongs to http://wordpress.stackexchange.com