php - custom field background image -


i have looked high , low this, can't seem find answer... have wordpress site used custom fields , can upload images , basic copy in tinymce, wondering if there's way have user upload background image wordpress, , have appear on site in area that's designated?

i'm using advanced custom fields upload / edit fields.

one idea have, have calls absolute url user uploads stuff to... problem if user uploads down line, wordpress change url of things uploaded. example, img src="october2013/backgroundimage", 2 months down line img src="december2013/backgroundimage".

is there way can designate url image uploaded in wordpress?

thanks

i found solution this! put background image url.... this:

 <div style="background-image:url(<?php the_field('headerimagegraphic');?>); background-repeat: no-repeat;"> 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -