Skip to content
Advertisement

Tag: wordpress

How can I detect if user has subscribed Memberpress product already

How can I detect if user has already bought a memberpress product. I’m searching something like this: Answer This should be pretty straight forward using MemberPress’ built in capabilities: MemberPress also adds capabilities for each MemberPress Membership so you could also do something like this: In the second example the number 123 is the id of the MemberPress membership.

How can I make an ad visible only to mobile users?

I want to use some mobile ads but my website has responsive design so I don’t use the m. subdomain. How can I make an ad visible only to mobile users? What about only to desktop or tablet? I’m using wordpress as a CMS. Thanks, Answer It’s quite easy using CSS3 Media Queries. In your CSS: For bigger devices, hide

WordPress custom field outside of loop

I currently have a banner image on a site which is pulled in via the featured image. The code below that does this works: I would like to change this to use a custom field instead via Advanced Custom Fields. I have made a custom field called banner_image with the type as image url. I cannot seem to get this

Broken links after moving wordpress site

I moved my wordpress site from local host to a live server. The problem is that all links from my nav won’t work as the home button. live site url: http://iulian.cablevision.ro broken link example: http://iulian.cablevision.ro/about/ this is the error that i get: I tried to use the a comand in SQL on my database to update urls: And I also

update_order_review( ) on button click

I have a custom button on my checkout page, on click I’m adding a product to cart via AJAX. JS: PHP: After that, I’d need to refresh the order review, so it displays my newly added product also. How can I do that? Answer All you need to do is call a trigger on the body to update the cart.

Advertisement