advertise on one wordpress site for woocommerce on another - wordpress

I have multiple related wordpress sites. one of them has woocommerce.
is there a way to promote some of those products (maybe identified by category or new or something like that) on one of my non-woocommerce sites?
Like the way google adwords show products related to, but not actually productized on that site?
Thanks.

You could use the REST API and grab the info you want from any site that can query the API.
Enable the API:
https://docs.woocommerce.com/document/woocommerce-rest-api/
Tech Docs:
http://woocommerce.github.io/woocommerce-rest-api-docs/

Have you ever thought about embedding iframe?
You have 2 choices, one is by using REST API as #tachb mentioned and the other one is by embedding iframe.
So you can make a custom products page which has products only without header and footer on the woocommerce site.
After that you can embed the page on the other sites as an iframe.
And please don't forget to add target="_parent" attribute to your all links in iframe content as mentioned here and here.
Hope this will help you.

Related

Using OpenGraph to pull content onto my site?

So a company I'm working with gets mentioned in the media from time to time (BBC & other big news sites).
Is anyone aware of fees / licenses we will need to use the content that BBC etc provides using OpenGraph and post that content on our site?
So essentially we want a little card on our site with the page title, OG image, URL and possibly the description, when the user clicks this it will open the original page/link on the original source site.
I can't see too much info out there other than sharing on facebook, not using OpenGraph on our site.
Can anyone share some knowledge? Cheers!
If I get your question correctly, you want to retrieve posts on the BBC site, scrape the information and show in your own site, right?
Does the site of BBC, and possible others, provide a feed where you can subscribe to? In that case, you could monitor that feed for any mentions of your company.
Alternatively, you can use one of Facebook's partners that use the Keyword Insights API. There you can set up monitoring for your company name and integrate with their API.

Cleaning up URLs in Google Analytics

I have a blogspot website. In Blogspot, you can select different themes to view a page (i.e classic, mosaic, flipcard etc.).
In Google Analytics, in All Pages report, all of them are shown separately.
/?view=flipcard
/?view=classic
/?view=mosaic
/?view=magazine
/?view=sidebar
/?view=snapshot
/?view=timeslide
I want to see them as my home page in my reports.
The same thing happens with the sub-pages as well. For example, this is an article in my blog, but I see two different entries in my reports.
/2014/05/deneme.html?view=snapshot
/2014/05/deneme.html?view=mosaic
I want to see all these articles as /2014/05/deneme.html in my reports.
Do I need to create different filters for each and every article in my blog?
What is going to happen if I add new articles, do I need to add the filters right after publishing my article to prevent this happening for my future articles?
Can you help me with the advanced filter setup in Analytics?
Thanks.
Nope, no need to add different filters, just add View to the Exclude Query Parameter option under View > View Settings.

Advertisement Manager - Dynamic Google DFP for WordPress

I am to be soon developing a number of websites with dynamic ad models using Google's DFP service. Ideally I want to develop these websites using WordPress, I was wondering if there was any tips or brilliant plugins to allow me to show generic ad units and specific ad units on different categories, pages and posts in certain categories?
I need a default generic set of advertisments to appear in a few predefined ad slots for example: 2x MPU, 2x Leaderboard etc..
These need to change depending on what category or page you are on. The same ads need to show on posts that come from it's parent category, the same applies for sub-categories and pages with sub-pages.
There seems to be no solution out there! Just simple plugins to stick adsense codes into posts randomly it seems..
There is no Wordpress plugin that allows different custom HTML to appear depending on what category the user is on.
Please refer to http://codex.wordpress.org/Function_Reference/is_category or ask me to make a Wordpress plugin for you.
Best way is 'create custom module/plugins'
This solution is only useful if you are not using category description any where.
you can add you advertisement code in category description, if current category has not ADV code then check in parent category ADV code, continue until root category.
For pages you can use custom field.
Here is a WordPress plugin that may be useful for you: http://wordpress.org/plugins/ad-code-manager/

Crosspost Wordpress blog post to blogger

I want to publish the same post which I just published in the worpress blog to blogger & facebook automaticaly. I know it possible and there are various plugin out there. But cant find one free to use plugin which do this.
I used a 'network publisher' plugin. Its free for facebook by need to pay if we want to add another on like blogger or other. But its working good for me in facebook
Now I am really worried what to do for my blogger to get automatically posted from wordpress.
At last I got the blogger (.blogspot) to get my post automatically from the wordpress.
The blogger can be configured to post via email. There in the blogger account we have to create a secret email address in the setting tab
format look like this - name_of_the_site.secretcode#blogger.com (so that a mail send to this address will automatically posted in the blogger)
And then in the wordpress install a plugin named CROSSPRESS which do all the required stuff
where simply put the email address and the signature which we want to show underneath each post.
Test it by creating a new post and publishing it. You will get the same in blogger
DONE......
It is now possible to post directly using Blogger API (since 4 weeks)
I think you just have to wait a plugin that integrate this feature.
Here is the API announcement : http://code.blogger.com/2012/06/blogger-api-v3.html
Simply set up Blogger and Facebook to get your Wordpress site RSS feed. Look at Blogger and Facebook for docs on how to do that.
Cross post seems to have issues in that line breaks don't get carried across properly and it seems to generate ASCII character 160 in a few random places as well at the moment.

WordPress- have a specific type of "page/post" as "testimony". Possible? If so, how?

I'm implementing our school's website using WordPress as CMS. So far, it works well and I'm 80% done. Our website is basically 11 WordPress pages and a blog.
Now, there is one feature i'm not sure how to resolve. We want to have "testimonies" of past students to be displayed across WordPress pages, in a specific area of the page. They will either be videos or written text with an image.
They will be embedded on regular WordPress pages either a specific video for a specific page, or just random testimony video for a given page.
Is it possible to do that with WordPress? If so, how?
Thanks for any hints.
Alex
There are quite a few Wordpress plugins which handle testimonials gracefully:
http://wordpress.org/extend/plugins/search.php?q=testimony
You should be able to do this with categories. Create a testimony category and and then create a new template called 'testimony-page.php'. In that template, put a separate loop that pulls a random testimony from the database. Voila, page in a page.
If you feel like building this yourself, it can be handled with custom post types. Here is a great guide that will give you a lot of useful information: http://www.smashingmagazine.com/2012/11/complete-guide-custom-post-types/
I like to use this plugin:
http://wordpress.org/extend/plugins/more-types/
To manage my custom post types.
To query posts from a new post type, use something like:
query_posts({
'post_type' => 'testimonials'
});
So, if you wanted to add testimonials to your site, you'd query them like above with whatever parameters you need, and do a simple loop to output the posts.

Resources