Categories
WordPress Work

SVN and @ characters: peg revision is not allowed here

This has got me stuck a few times in the past few months so I thought I would write this down and get this committed to memory, once and for all!

When working with SVN and trying to add or remove a file that includes the @ to your working copy, you will run into a peg revision is not allowed here error:

svn rm modules/sharedaddy/images/[email protected]
svn: E200009: 'modules/sharedaddy/images/[email protected]': a peg revision is not allowed here

That is because SVN uses the @ symbol as a way to determine a specific revision, like so:

svn info [email protected]
Path: readme.txt
Name: readme.txt
URL: https://plugins.svn.wordpress.org/jetpack/trunk/readme.txt
Relative URL: ^/jetpack/trunk/readme.txt
Repository Root: https://plugins.svn.wordpress.org
Repository UUID: b8457f37-d9ea-0310-8a92-e5e31aec5664
Revision: 2021803
Node Kind: file
Last Changed Author: jeherve
Last Changed Rev: 2021532
Last Changed Date: 2019-01-29 22:57:37 +0100 (Tue, 29 Jan 2019)

To work around that, all you need to do is add an @ symbol at the end of the filename, like so:

svn rm modules/sharedaddy/images/[email protected]@
D         modules/sharedaddy/images/[email protected]

Problem solved!

Categories
Cinema Geek Inside TV WordPress

Watched a movie or a TV show? Log it in WordPress with Traktivity

Do you watch a lot of movies or TV Shows? Do you have a WordPress site? You will love Traktivity!

This plugin allows you to log everything you watch inside your WordPress site. You may then use that data for anything you want.

You could display the last few shows you watched in a widget in your sidebar, you could automatically post on Facebook or Twitter whenever you are watching something, or you could just keep that data to find out more about the genres you watch the most, or how many hours you spent in front of the TV last month or last year.

Most importantly, that data is yours, saved in your WordPress site for good.

(more…)

Categories
Photos WordPress Work

A few days in Albuquerque

Working for Automattic is pretty great. Not only is the work fun and challenging, I also get to travel quite a bit. In the past few years, I’ve discovered San Francisco, Pune, Kauai, Dublin, and many other interesting places.

This month I added two more cities to my list: Madrid, Spain, and Albuquerque, New Mexico. I didn’t take many pictures in Madrid, but I know my colleague Donncha will keep adding more pictures from our trip to his photo blog in the next few months. 😊

I did, however, take a few pictures in Albuquerque.

(more…)

Categories
WordPress

Jetpack: move Jetpack Ads further down in a post

You’ve probably heard about Jetpack’s new Ads module: it allows you to insert ads in your posts, in your sidebar, and in the header of your WordPress site without having to worry about finding the right ad network, managing ad inventory, or worrying about the quality of the ads. It’s available to Jetpack Premium and Professional users.

To use the feature, all you have to do is to click on the toggle under the Jetpack menu in your dashboard. Jetpack takes care of the rest.

However, sometimes you may not be happy with the default placement of the in-post ads: they appear right below the post content. That’s great, but sometimes you may be using other plugins to insert elements in there, like sharing buttons, related posts, subscription forms, …

The code snippet below will allow you to move the ad box exactly where you want it to appear.

(more…)

Categories
WordPress

How to get help with your WordPress site

Working in support can be fun. And sometimes, it can be a bit frustrating. Story time!

(more…)

Categories
WordPress

Jetpack: control what images are served by Photon

Jetpack’s Photon module is a free image CDN that doesn’t require any configuration; as soon you activate it, all the images in your posts and pages will be downloaded, optimized, cached, and served from WordPress.com’s CDN. Magic!

Photon is applied to all images on your site, including images that may hosted somewhere else; if you one day added an image to one of your posts without actually uploading it to your Media Library, that image will be served through Photon too.

However, sometimes you’d rather not serve external images through Photon. After all, these images may already be served via another CDN! Luckily, Jetpack includes a filter to allow you to control which images get served by Photon. In the example below, we’ll only use Photon for images belonging to our site, and make sure none of the images that are not hosted on our site get processed by Photon.

(more…)
Categories
WordPress

Jetpack and Open Graph Meta Tags: change a post’s Media Type to Video

When sharing posts on Facebook, you may have realized that sometimes you can play a video right on Facebook, without having to click and go to another site.

Videos on Face

This is possible thanks to Open Graph Meta Tags. When you share a post on Facebook, or when Jetpack Publicize publishes a post to your Facebook page, Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview. That post preview will often include an image, a title, a description, and sometimes a video like on the screenshot above.

Jetpack automatically creates these Open Graph Meta tags for you unless you already use another Open Graph plugin, in which case we let the other plugin handle things.

Let’s learn how to customize the type of tags that Jetpack can add to your posts.

Categories
WordPress

Parlons de l’API REST dans WordPress

J’ai eu la chance de passer mon vendredi soir en bonne compagnie, avec d’autres fans de WordPress francophones : Alexandre Sadowski, Maxime Bernard-Jacquet, Thierry Pigot, Mathieu Viet, Grégoire Noyelle, et Maxime Culea. Que du beau monde, à l’occasion du podcast VeryFrenchTrip, et pour parler de l’API REST.

(more…)

Categories
WordPress

Post Views for Jetpack

New week, new plugin! ?

This is once again a Jetpack add-on, and it’s also another good example of the things you can accomplish with the WordPress.com REST API: Post Views for Jetpack pulls data about your site’s stats, as well as stats for each one of your posts.

This is still a work in progress; I would love to know what you’d like in this plugin, and where you would like to display those post views. Open a new thread in the support forums to let me know!

Categories
WordPress

REST API for WordPress: what does it mean for you?

If you follow WordPress news, you’ve probably heard about the REST API already. We’ve been talking about it for years, and it’s been presented as a revolution within WordPress. That’s all great, but what does it mean in practice?

(more…)