Working With Advanced Custom Field Repeater

Hi Guys.. Today I am going to show you that how you can use Advanced Custom Field repeater field. I am showing you here a code example so that you know how to use the repeater field . Here is a normal loop that you can use to show a repeater

Here is another simple example for repeater field

Here is a advanced loop that you can use to create a slider using Advanced Custom Field

Redirect domain using .htaccess

Here I am describing various types of .htaccess  redirect.. you can select right one according to your need..

301 (Permanent) Redirect: Point an entire site to a different URL on a permanent basis. This is the most common type of redirect and is useful in most situations. In this example, we are redirecting to the “tothisdomain.com” domain:

# This allows you to redirect your entire website to any other domain

Redirect 301 / http://tothisdomain.com/

302 (Temporary) Redirect: Point an entire site to a different temporary URL. This is useful for SEO purposes when you have a temporary landing page and plan to switch back to your main landing page at a later date:

# This allows you to redirect your entire website to any other domain

Redirect 302 / http://tothisdomain.com/

Redirect index.html to a specific subfolder:

# This allows you to redirect index.html to a specific subfolder

Redirect /index.html http://example.com/newdirectory/

Redirect an old file to a new file path:

# Redirect old file path to new file path

Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html

Redirect to a specific index page:

# Provide Specific Index Page (Set the default handler)

DirectoryIndex index.html

 

My Recent WordPress Plugin

My Recent WordPress Plugin

I have been working with WordPress since 5 years. But during this period of my carrier I didn’t develop a   plugin. Actually it was not needed. But sometimes needed for some of my clients specific needed. so never feel to create a plugin for others.

But some days ago I realized that I can do good for people. So I decided to create a plugin for people. So that people can be benefited by this.

 

From that sense I developed a plugin recently which is now availabe in wordpress.org plugin repository. Below is the link of that plugin.

https://wordpress.org/plugins/tube-video-widget-using-post-meta/

I am really excited after publishing my first plugin. It may be simple but can be handy I think for some reason.

Now a days I enriching my programming knowledge in JavaScript, Jquery etc. I always try to learn new thing and love to take challenge.

Hope I can release my next WordPress plugin soon.

How to move files from one cpanel to other cpanel

How to move files from one cpanel to other cpanel

Few days ago I was working with a clients . His site has a big file size which is almost 1.5 GB . He wanted to clone the site to another server and rebuild it and then transfer again to the main site. But I found it to difficult or lengthy process to download all files to my computer and then re-upload it to another server. So I was searching for the solution for this and finally I got it.

The process is simple, you need to create a free Mover account, then follow the below step by step tutorial to move your files to the new server, without downloading them locally. It’s a migration from your actual server to the new one.

Move-files

Then just follow like the above image. And you should be done.

Closing Lightbox popup using browser back button

Closing Lightbox popup using browser back button

I have been in web development field for almost 4 years and I am learning new things every now and then.

Today I have got another issue solved that is not common.

I was developing this site http://diversitycareercentral.com/jobssample_xml_4-xm/ and in this page there is a job feed from other site. I was using WP RSS multi importer wordpress plugin to import feed. And it opens the job link as a popup.

The popup has nrmal close button at bottom. And it can be closed also by simple clicking outside of the popup.

But my client was asking something not comon. That is he was trying to close the popup by pressing browser back button.

Ultimately it was closing the popup but as the popup is not a page; that is why it was taking him to home page means previous page. But clients wants to stay on the same page and wants to close the popup by pressing the back button of the browser.

I was trying to find the solution and finally got it.

Easiest way is to make user feel that its pop-up or model not a new page, by using some margins or making it span10 offset1 kind of.

Another way around is Open and Close method which is described here

And the best method is

Hope All the guys found it helpfull