Mettre à jour: Ce plugin a été déplacé vers ma page Projets et mis à jour vers:
PostePoste - Un plugin WordPress pour placer du contenu personnalisé avant et après chaque publication de votre site ou de votre flux.
J'ai écrit ce plugin après avoir essayé d'ajouter de la publicité à mon flux par moi-même et être frustré. C'est mon premier plugin 'complet' mais je pense qu'il est écrit très proprement. J'ai vraiment compris l'architecture du plugin en utilisant Plugin de copyright de Simple Pensées. J'ai utilisé la construction de Ryan Duff's Plugin WP Contact Form pour l'écrire de manière beaucoup plus constructive. C'est un excellent plugin pour télécharger et apprendre à écrire un plugin car c'est si simple.
Doug – This is awesome. I’ve been putting off writing my own in hopes of someone else doing it. I’m not running ads, but am planning on having some feed only stuff coming up. This will be perfect. Thanks!
Just an FYI, I totally rewrote the plugin and have posted it again. The original was fine, but the upgrade has a full admin interface on it! I’ve reposted this post as well.
That it was! It was one of my goals for 2007 to write my own plugin from scratch. I’ve modified many other people’s plugins but this is the first that I took on. It’s now being used to serve my Google Ads under each post as well as my RSS Feed ads.
Fun stuff… and 2 goals down! (One of my others was to get into the Top 5,000 at Technorati… I hit that already but it was with the assistance of many “Z-List” posts, so I’ll wait for the stats to iron themselves out before I celebrate).
DOH! I also noticed that it showed up on the page posts… so I just modified it and released 1.1.1. I think that’s a release speed record! Now you can also customize the content before and after the page.
Thanks for this, one quick thought for you though – I believe Google AdSense place a limit of 4 (5?) adverts per page, so if you add AdSense code after/before each post, and you have the option set to more than 5 posts viewed per page, there could theoretically be an issue.
Not meant as a complaint, as I don’t even use them any more (terminated my account :
I’m going to check on that Chris! I am trying to ‘toy’ with the idea of random, and nth placement for these. As well, I’m going to work in header and footer customization. The plugin is written quite well (I ‘borrowed’ other structures from other well-written plugins) so I’m going to continue to expand it.
I’m not sure how their Page Politique should be implemented. It states that there can be up to 2 ads per product. That’s interesting… example, If I have 8 posts (products) on a page with a Google Ad under each one, I don’ think I’m violating their policy.
I did see some older rules where it stated 4 per page – but those appear to be long gone. Perhaps because of situations like this. Interesting! I also notice that sometimes an ad is ne pas generated by the script – I wonder if they have an internal control mechanism built in.
Hi, back again. Thanks for your e-mail, apologies in taking so long to respond.
One request, and two bugs.
Well the bugs may be down to my theme, I’m not sure…
1 – Would it be possible to alter the frequency of inserted adverts between posts – I feel I now have too many ads on my site :> I originally thought on the possibility of basing this on odd and even numbered posts, but I then realised that post numbers with no post attached weren’t re-used in WP. Example, you write a draft, post a few other posts, then delete the draft. Unless there is another reason for my post #s not being concurrent, you would end up with a sequence like 431,433,434 . Not sure how easy it would be to implement a POST_AD_POST_POST_AD_POST_POST sort of layout, any thoughts?
2 – (ONLY) When looking at posts via clicking on my Categories, often the ad code isn’t interpreted – this only seems to occur on short posts. As an example, if you go to my site and click on the Pictures categories, the first three posts display the code, not the output.
3 – Doesn’t appear to work when requesting adverts in the footer section.
Like I said, these issues may be down to the theme I’m using (Anaconda, check my site for a link), I was just hoping to get your input on this when you get a moment…
I had to take down the per-post ads, as a number of readers had commented on the appearance of short posts when viewed via the category links.
If you happen to find 5/10 minutes spare, could you contact me, and I’ll happily re-insert the code, if you fancy tracing the issue.
Merci.
I’m guessing this post isn’t checked very often?
I tried checking the project page, but couldn’t see a comment section, so mailed you a while back.
I’m now not using ads in the same way, but wonder if other users might still find the features I mentioned above useful.
Ooops! Sorry, Chris! I missed this comment for some reason. I do have a number of improvements that I would like to make on the project, I just need to get around to them!
np, glad you’ve seen the comments. Did you get the e-mail describing how on category pages, the adverts were sometimes rendered without being interpreted? Not sure if that is how you should technically phrase it, but instead of an advert, I basically saw the html for it instead…
No hurry requested on my part – I’m fiddling with other things myself right now…
Released PostPost 1.2.0 today! It utilizes the is_single function of WordPress so you should be able to post something before or after a single post page.
I can’t seem to get it working on my blog, though. I’m reading at WordPress support that some other folks are having problems with their template and the is_single function. It doesn’t break anything, it just doesn’t display anything.
Doug: nice plug-in – short & simple. I’m using the default WordPress theme (v 1.6) and the “After Single Post on Page” option does not seem to display anything.
I’ve not seen the est célibataire problem rectified by WordPress at this point. I am going to take a double-take at the code, but I’m pretty sure the plugin is okay.
Doug: thanks for the fast reply! So, I guess I did a poor job of asking my question. I seem to be having some issues with how PostPost works with my blog specifically with the single post display option.
I am trying to install PostPost plugin and it works great. I am putting a promotion after each post but I am having an issue. The promotion is being displayed in the categories / homepage where I have kept the more tag. The promotion appears after the READ MORE link. Is there a way we can fix that? Not show after READ MORE link??
Nous utilisons des cookies sur notre site Web pour vous offrir l'expérience la plus pertinente en mémorisant vos préférences et les visites répétées. En cliquant sur «Accepter», vous consentez à l'utilisation de TOUS les cookies.
Ce site Web utilise des cookies pour améliorer votre expérience pendant que vous naviguez sur le site Web. Parmi ceux-ci, les cookies classés comme nécessaires sont stockés sur votre navigateur car ils sont essentiels au fonctionnement des fonctionnalités de base du site Web. Nous utilisons également des cookies tiers qui nous aident à analyser et à comprendre comment vous utilisez ce site Web. Ces cookies ne seront stockés dans votre navigateur qu'avec votre consentement. Vous avez également la possibilité de désactiver ces cookies. Mais la désactivation de certains de ces cookies peut affecter votre expérience de navigation.
Les cookies nécessaires sont absolument essentiels au bon fonctionnement du site. Cette catégorie inclut uniquement les cookies qui garantissent les fonctionnalités de base et les fonctionnalités de sécurité du site Web. Ces cookies ne stockent aucune information personnelle.
Tous les cookies qui peuvent ne pas être particulièrement nécessaires au fonctionnement du site Web et qui sont utilisés spécifiquement pour collecter des données personnelles des utilisateurs via des analyses, des publicités et d'autres contenus intégrés sont qualifiés de cookies non nécessaires. Il est obligatoire d'obtenir le consentement de l'utilisateur avant d'exécuter ces cookies sur votre site Web.
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Kate Bradley-Chernis, PDG de Laately (https://www.lately.ai). Kate a travaillé avec les plus grandes marques au monde pour développer des stratégies de contenu qui stimulent l'engagement et les résultats. Nous discutons de la façon dont l'intelligence artificielle aide à stimuler les résultats de marketing de contenu des organisations. Dernièrement, une gestion de contenu d'IA de médias sociaux…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, on parle à Mark Schaefer. Mark est un grand ami, mentor, auteur prolifique, conférencier, podcasteur et consultant dans l'industrie du marketing. Nous discutons de son dernier livre, Cumulative Advantage, qui va au-delà du marketing et traite directement des facteurs qui influencent le succès dans les affaires et dans la vie. Nous vivons dans un monde…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons au co-fondateur et PDG de Casted, Lindsay Tjepkema. Lindsay a deux décennies dans le marketing, est une podcasteuse chevronnée et avait la vision de créer une plate-forme pour amplifier et mesurer ses efforts de marketing B2B... elle a donc fondé Casted ! Dans cet épisode, Lindsay aide les auditeurs à comprendre : * Pourquoi la vidéo…
Depuis près d'une décennie, Marcus Sheridan enseigne les principes de son livre à des publics du monde entier. Mais avant qu'il ne s'agisse d'un livre, l'histoire de River Pools (qui en était la base) a été présentée dans plusieurs livres, publications et conférences pour son approche incroyablement unique du marketing entrant et de contenu. Dans ce Martech Zone Entrevue,…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Pouyan Salehi, un entrepreneur en série et a consacré la dernière décennie à l'amélioration et à l'automatisation du processus de vente pour les commerciaux B2B et les équipes de revenus. Nous discutons des tendances technologiques qui ont façonné les ventes B2B et explorons les connaissances, les compétences et les technologies qui stimuleront les ventes…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Michelle Elster, la présidente de Rabin Research Company. Michelle est une experte en méthodologies de recherche quantitative et qualitative avec une vaste expérience internationale en marketing, développement de nouveaux produits et communications stratégiques. Dans cette conversation, nous discutons: * Pourquoi les entreprises investissent-elles dans les études de marché? * Comment puis…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Guy Bauer, fondateur et directeur de la création, et à Hope Morley, directeur des opérations d'Umault, une agence de marketing vidéo créatif. Nous discutons du succès d'Umault dans le développement de vidéos pour les entreprises qui prospèrent dans un secteur en proie à des vidéos d'entreprise médiocres. Umault a un portefeuille impressionnant de victoires avec ses clients…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Jason Falls, auteur de Winfluence: Reframing Influencer Marketing To Ignite Your Brand (https://amzn.to/3sgnYcq). Jason parle des origines du marketing d'influence jusqu'aux meilleures pratiques d'aujourd'hui qui fournissent des résultats supérieurs pour les marques qui déploient d'excellentes stratégies de marketing d'influence. En plus de rattraper et…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à John Vuong de Local SEO Search, une agence de recherche organique à service complet, de contenu et de médias sociaux pour les entreprises locales. John travaille avec des clients à l'international et son succès est unique parmi les consultants en référencement local: John est diplômé en finance et a été l'un des premiers à adopter le numérique, travaillant dans le…
Dans ce nouvel article concernant notre nouveau projet Martech Zone Interview, nous parlons à Jake Sorofman, président de MetaCX, le pionnier d'une nouvelle approche basée sur les résultats pour gérer le cycle de vie des clients. MetaCX aide les entreprises de produits SaaS et numériques à transformer leur façon de vendre, de livrer, de renouveler et de se développer avec une expérience numérique connectée qui inclut le client à chaque étape. Acheteurs chez SaaS…
Doug – This is awesome. I’ve been putting off writing my own in hopes of someone else doing it. I’m not running ads, but am planning on having some feed only stuff coming up. This will be perfect. Thanks!
Thanks Tony! I’m going to upgrade it in the next couple weeks with an Admin interface. I’m new at writing Plugins so it’s slow going.
Tony,
Just an FYI, I totally rewrote the plugin and have posted it again. The original was fine, but the upgrade has a full admin interface on it! I’ve reposted this post as well.
Doug
Cool. Somebody’s had a fun and productive weekend 😉
That it was! It was one of my goals for 2007 to write my own plugin from scratch. I’ve modified many other people’s plugins but this is the first that I took on. It’s now being used to serve my Google Ads under each post as well as my RSS Feed ads.
Fun stuff… and 2 goals down! (One of my others was to get into the Top 5,000 at Technorati… I hit that already but it was with the assistance of many “Z-List” posts, so I’ll wait for the stats to iron themselves out before I celebrate).
À votre santé!
Doug
DOH! I also noticed that it showed up on the page posts… so I just modified it and released 1.1.1. I think that’s a release speed record! Now you can also customize the content before and after the page.
Thanks for this, one quick thought for you though – I believe Google AdSense place a limit of 4 (5?) adverts per page, so if you add AdSense code after/before each post, and you have the option set to more than 5 posts viewed per page, there could theoretically be an issue.
Not meant as a complaint, as I don’t even use them any more (terminated my account :
I’m going to check on that Chris! I am trying to ‘toy’ with the idea of random, and nth placement for these. As well, I’m going to work in header and footer customization. The plugin is written quite well (I ‘borrowed’ other structures from other well-written plugins) so I’m going to continue to expand it.
Merci!
OK, thanks for the info, and speedy reply, appreciated.
I’m not sure how their Page Politique should be implemented. It states that there can be up to 2 adsper product. That’s interesting… example, If I have 8 posts (products) on a page with a Google Ad under each one, I don’ think I’m violating their policy.
I did see some older rules where it stated 4 per page – but those appear to be long gone. Perhaps because of situations like this. Interesting! I also notice that sometimes an ad is ne pas generated by the script – I wonder if they have an internal control mechanism built in.
ah OK, so I had old information in my head, thanks for the correction.
Hi, back again. Thanks for your e-mail, apologies in taking so long to respond.
One request, and two bugs.
Well the bugs may be down to my theme, I’m not sure…
1 – Would it be possible to alter the frequency of inserted adverts between posts – I feel I now have too many ads on my site :> I originally thought on the possibility of basing this on odd and even numbered posts, but I then realised that post numbers with no post attached weren’t re-used in WP. Example, you write a draft, post a few other posts, then delete the draft. Unless there is another reason for my post #s not being concurrent, you would end up with a sequence like 431,433,434 . Not sure how easy it would be to implement a POST_AD_POST_POST_AD_POST_POST sort of layout, any thoughts?
2 – (ONLY) When looking at posts via clicking on my Categories, often the ad code isn’t interpreted – this only seems to occur on short posts. As an example, if you go to my site and click on the Pictures categories, the first three posts display the code, not the output.
3 – Doesn’t appear to work when requesting adverts in the footer section.
Like I said, these issues may be down to the theme I’m using (Anaconda, check my site for a link), I was just hoping to get your input on this when you get a moment…
I had to take down the per-post ads, as a number of readers had commented on the appearance of short posts when viewed via the category links.
If you happen to find 5/10 minutes spare, could you contact me, and I’ll happily re-insert the code, if you fancy tracing the issue.
Merci.
I’m guessing this post isn’t checked very often?
I tried checking the project page, but couldn’t see a comment section, so mailed you a while back.
I’m now not using ads in the same way, but wonder if other users might still find the features I mentioned above useful.
Ooops! Sorry, Chris! I missed this comment for some reason. I do have a number of improvements that I would like to make on the project, I just need to get around to them!
np, glad you’ve seen the comments. Did you get the e-mail describing how on category pages, the adverts were sometimes rendered without being interpreted? Not sure if that is how you should technically phrase it, but instead of an advert, I basically saw the html for it instead…
No hurry requested on my part – I’m fiddling with other things myself right now…
Released PostPost 1.2.0 today! It utilizes the is_single function of WordPress so you should be able to post something before or after a single post page.
I can’t seem to get it working on my blog, though. I’m reading at WordPress support that some other folks are having problems with their template and the is_single function. It doesn’t break anything, it just doesn’t display anything.
Let me know if it works for your blog, though!
It doesn’t (I’m using the Big Blue theme). Any chance to solve this? 🙂
Doug: nice plug-in – short & simple. I’m using the default WordPress theme (v 1.6) and the “After Single Post on Page” option does not seem to display anything.
Did you ever solve the is_single problem?
Welcome, Dr. Jim!
I’ve not seen the est célibataire problem rectified by WordPress at this point. I am going to take a double-take at the code, but I’m pretty sure the plugin is okay.
Doug
Doug: thanks for the fast reply! So, I guess I did a poor job of asking my question. I seem to be having some issues with how PostPost works with my blog specifically with the single post display option.
Not that it really matters, but my blog is located at:
http://www.theaccidentalnegotiator.com/
It looked like you and a commenter (is that a word?) were discussing this very problem back at the beginning of 2008.
Was it a problem back then? Does the ?After Single Post on Page? work on your blog today?
I’m more than willing to admit that I’ve screwed something up, but first I’m just checking to see if everyone else is having the same problem.
I’ve looked at your code and it’s nice & clean, so for right now I’m blaming “is_single”.
Laissez-moi savoir ce que vous pensez.
Salut Doug,
I am trying to install PostPost plugin and it works great. I am putting a promotion after each post but I am having an issue. The promotion is being displayed in the categories / homepage where I have kept the more tag. The promotion appears after the READ MORE link. Is there a way we can fix that? Not show after READ MORE link??
Merci de votre aide.
Chandra