WordPress automatically translate auto posts - wordpress

I have a WordPress blog and I am using the Automatic Youtube Video Posts plugin.
However, my site is in Danish and I would like for my posts to be in Danish.
Is there a way or a plugin that automatically translates the actual content of wordpress posts when they're posted?
Not just by using a real-time-translate-button, but actually changes the post data to the new language (So that it is read as Danish by google)

http://wordpress.org/extend/plugins/speaklike-worldwide-lexicon-translator/
http://wordpress.org/extend/plugins/bens-translator/
http://wordpress.org/extend/plugins/global-translator/
Those three examples are "automatic" translators, and work on posts . they also have a caching system for google.
However, since you "auto-post" - you might need to hook to them somehow. I never really used any, but I think that at least two of those are fully automatic and create the chosen translation on publish-time of post (and not real-time).
That being said - relaying solely on google translate service (or any other automatic service) for translation will likely to produce unwanted results.

Related

Wordpress post view format for filter grid

I am a complete newb to wordpress. I am trying to help a friend out. She asked me to help her move her wordpress instance to another hosting provider.
I have done that for the most part. My issue is the original provider implemented a not-so-obvious way of an isotope filter on some UI elements.
Specifically the object is a company. Each company has a logo, the name of the company, a short description and a contact name / email.
These companies service states / areas and the idea behind the page is to select the state and only the companies for that state are visible.
From the brief searching I have done - there seems to be an overwhelming amount of plugins to support this.
I have tried creating a simple post with a featured image and adding in the text in the excerpt.
My problem is the links. I don't want the links to go back to the post - rather I want the links to go to a custom URL.
Is there a plugin that will allow me to define a custom post type (to include categories) and then filter on it similar to Isotope type of filtering?
There are many free plugins but if you are using the Elementor page builder. I am not advertising my product but as I saw your requirement matches a plugin that I am selling in the market.
The frontend filtering feature is not yet available to the released version but will be released soon. It basically allows you to build a custom grid as you like.
Is it something similar?
https://demo.geekygreenowl.com/elementor-387/
You have to create a custom post, there should be a custom field(custom URL) as well.
Or, You may create a WordPress query. https://developer.wordpress.org/reference/classes/wp_query/
also, coding will be required for filtering

API to get posts from a Drupal blog?

I'm giving a shot to rebuilding the newsletter-maker for my wife's company. The prime issue is setting it up to always/automatically, say, link to the 3 most recent posts on their blog.
I can imagine how to start doing with with Rails and Javascript (my areas of "expertise" as a relatively amateur coder), except for the part where I have absolutely no idea where I would get this stream of posts.
The site (and thus the blog) is on Drupal. I know so zero about Drupal that I'm not 100% sure what "on Drupal" actually means. But I googled Drupal API and it's too vast for me to know where to start, and searching "blog" on the API site doesn't return anything helpful.
PS. I do know how to work with APIs. Once I find one!
PPS. Is this just a matter of working with RSS feeds? (Which I also don't know how to do but I imagine it's easy to find an answer)
You can implement an RSS feed with the Views module.
In short, you would have to take the following steps:
create a view of the blog posts. Use filter criteria to select only published posts, and sort criteria to sort blogposts from most recent to older.
add a display 'Feed'
Under 'Feed settings' specify a path.
That's it. For more detailed tutorial, see e.g this link (disclaimer: I'm not the author of the referred blogpost).
Finally, extract the latest three RSS items with your newsletter-maker.

How to create a listing of Social networks' posts with Drupal

I want to achieve something like this: http://curatorsofsweden.com with DRUPAL
Here different people post over the same twitter-Account for one week. The Twitter-stream is published on the Website and you can also „time travel“ via the archive to see what which people posted in which week/days.
I want to achieve the same with DRUPAL and with a Twitter AND Instagram Account (and maybe FB too). My Idea is to import those streams with the feeds-module to treat the posts as DRUPAL-content. This way is more flexible to work with the content afterwards. But how to "automatically" map this to different users (or maybe treat a user as own content-type instead of normal DRUPAL-user?)?
What modules - or combination of modules - would you use to realize this? Im open for any suggestion!
Thanks
St.
Edit the view/config page of the feed to include a "user reference" using terms or taxonomy. This might require using a custom hook_form_alter to tweak it a bit.

Set the permalink to any domain in Wordpress

Is this possible to achieve without too much effort or a plugin? It's simply to instantly redirect to a site I've made in my portfolio if the post doesn't have any content.
Note that I don't want a script in the actual post to redirect since I only use Wordpress as the backend and fetch all the data to be used by a JavaScript backbone app.
EDIT : Added some extra info in a comment
Short Answer: No. You cannot set your Post Permalink to an external asset without directly editing the database.
Long Answer: First off, you need to understand the purpose of the Permalink. It isn't just an arbitrary link to somewhere. It's reserved specifically for storing where that specific post lives within the context of your Wordpress installation.
Your post doesn't live on example.com. It has its own ID, and Wordpress has a specific spot set aside for it where it can be seen on YOUR domain. Leave it as such.
Instead, what you should be doing is employing the tools Wordpress gives you to achieve what you want. A Plugin doesn't exist for what you want because - quite frankly - it's a fairly trivial task when approached CORRECTLY and doesn't warrant the use of an external resource.
So what's the correct way?
Use a Custom Field. Name your Custom Field something like 'externalHref' and fill that in with your link to the website you want to point to in case there's no post content.
Then in whatever templates you're using to generate your posts, just check either for the existence of your Custom Field called 'externalHref' or check for the non-existence of Post Content. In either case, instead of generating a link using The Permalink you can simply build a link that points to wherever you need.

Wordpress Functionality: Custom Theme or Plugin?

I am new to Wordpress (using roughly 6 months) and just now getting into development when I decided I would attempt to replicate a project I have going currently and after reading multiple blogs regarding plugin development and custom post types, I am thoroughly confused as to which direction I should go. I am in need of creating a site that has back-end management (admin only) and then end-user management where the end-user should have a page that allows them to manage their items.
With custom post types, I am able to create the objects that I will need to use but that doesn't give me total control when it comes to allowing the end-user to modify them from a front-end interface.
With a plugin, I think I am able to create exactly what I need but not sure how to yet but at the same time, thinking through the structure of Wordpress, everything is basically a post, correct? So, if that's the case, my plugin would need to have the ability to register new custom post types. Does it sound like I am on the right track or am I way off here?
Custom Post Types can add a lot of power, especially if you dress up the Custom Fields with meta boxes. You can always use a role-scoping plugin to limit the access of end-users to only be able to use these Custom Posts and nothing else. CPT are a great way to handle inventory management and not rely on a plugin that will either cost $ or potentially break months down the road.
That said, many plugin you would find would most likely just create a Custom Post Type anyway. Take a look around on the codex for info on creating CPT, and if you're interested, look at jaredatch's work on Github.
http://codex.wordpress.org/Post_Types
https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress

Resources