Fermé

Tweak wordpress theme back-end management of Portfolio items

Hi,

I have a theme that let's me add a 'portofolio' of works. I use a set of images that I upload through the admin panel for 'edit portfolio'. Each image I upload corresponds to a different 'project/work' in that portfolio.

You can name each item in the portfolio within the same back-end form

I want to add the image filename, when I upload the image, to be the TITLE of the portfolio item.

Portfolio Demo

1. You can visit the site and go to dashboard -> portfolios -> add new portfolio

2. Here you can add 'works' which are the images

3. I'd like the 'title' of the work to be read from the image filename, add into the field in the metabox the filename as the title.

Login to site and ftp details in attached images :)

-> Here you can see the code. Let me know if you can FTP into the site.

Files you need to look @

- wp-content/themes/bazar/core/yit/[url removed, login to view]

Handles the custom post type

- wp-content/themes/bazar/core/lib/yit/Portfolio_type/Portfolio_type

Code for managing the portfolio for the theme

You will notice in [url removed, login to view] this function:

/**

* Update images via AJAX

*

* @since 1.0.0

*/

public function update_items() {

$post_id = isset( $_POST['post_id'] ) ? $_POST['post_id'] : false;

// update items in the post

$items = $this->get_setting( 'items', $post_id );

$uploaded_items = $this->_getImages($post_id);

foreach ( $uploaded_items as $item_id => $args ) {

if ( isset( $items[$item_id] ) )

$items[$item_id] = wp_parse_args( $args, $items[$item_id] );

else

$items[$item_id] = $args;

$items[$item_id]['title'] = "TEST";

}

$this->update_setting( 'items', $items, $post_id );

echo json_encode( array_keys( $uploaded_items ) );

foreach ( $items as $item => $value ) {

echo $key . 'has the value' . $value;

}

die();

}

This is where the images are uploaded in the back-end to the portfolio.

$items[$item_id]['title'] = "TEST";

This line works. I can see in the debugger that the title element is being changed (and I could then replace this with the filename of the image).

$this->update_setting( 'items', $items, $post_id );

This line should update the 'items' data in the post_id to the new $items array (with the newly set title variable).

But somewhere this is overwritten, and when we return to the page, the portfolio items have no titles.

I believe it is in the metabox for the post_type_unlimited.

Please let me know if you can take a look and let me know the fix & cost.

Am sure it's a call to update_post_meta somewhere, for each title in the array of portfolio items

NOTE: Please let me know if you can FTP into the site before we start discussion.

Thanks.

Compétences : PHP, WordPress

Voir plus : wordpress theme tweak, wordpress theme php files, professional portfolio wordpress theme, wordpress portfolio items category, wordpress theme required files, optimize wordpress theme portfolio, tweak wordpress theme, wordpress theme portfolio ecommerce, tweak thesis wordpress theme, converting wordpress theme portfolio, wordpress theme psd files, wordpress theme content management

Concernant l'employeur :
( 0 commentaires ) Bangkok, Thailand

N° du projet : #13089708

27 freelance ont fait une offre moyenne de 45 $ pour ce travail

suhelshaikh

Dear Project Owner, I have gone through your post and would like to apply for same. I have got more than 5 years’ experience in developing and designing websites in LAMP environment and would love to join your project Plus

29 $ USD en 2 jours
(35 Commentaires)
6.5
instaservpvtltd

Hi, We're a certified Wordpress Professionals.Kindly let us know what are the queries you are facing so that we can review the case and revert you soon. Thanks & Regards, Deb

100 $ USD en 1 jour
(118 Commentaires)
6.5
rinkul123

Hi, I have more than 5 years of experience in working on professional websites and blog designs as well as on developments which consist of relevant skills like Wordpress, Joomla, Php, Html, Css, Js, SEO .I also hav Plus

50 $ USD en 1 jour
(67 Commentaires)
6.4
submitbuzzz

Hi Thanks for posting this requirement. We are, India based website design & development company since 5 years effectively deliver and concentrate in high quality design & development. If you're looking for an aw Plus

100 $ USD en 1 jour
(98 Commentaires)
6.3
cubecreation

Dear sir/Madam We are result oriented web design & development agency based in India. We are a team of 20+ professionals for IT Services like- Website Designing, Development and maintenance services, logo design, gr Plus

30 $ USD en 1 jour
(85 Commentaires)
6.6
ideafactory421

I am Wordpress Developer working from 4 years. As you can see in my profile, I have completed many Wordpress projects. Let me help you a hand in Tweaking WordPress theme back-end management of Portfolio items Adil Plus

25 $ USD en 1 jour
(36 Commentaires)
5.2
kushalmahajan008

Hi, I am having more than 7 years experience in web development & designing and project management from scratch as well as maintenance using PHP/MySql, PHP Frameworks like codeiginitor, open source CMS like WordPre Plus

25 $ USD en 1 jour
(22 Commentaires)
5.1
25 $ USD en 1 jour
(50 Commentaires)
5.2
55 $ USD en 1 jour
(140 Commentaires)
5.0
intellectpark

Hello Sir/Madam This is steve A.(Business Manager) intellect park. Intellect park is new, growing I.T company. we have strength of 10 professionals working in different technology. I would like to show intere Plus

30 $ USD en 2 jours
(10 Commentaires)
4.6
28 $ USD en 1 jour
(18 Commentaires)
4.3
navjootkaur

Dear Sir/Mam As I can see from job posting, you are in need of a wordpress expert who can help you with your Wordpress developer project. Well, I am highly interested in applying for this. I have been working on Plus

50 $ USD en 2 jours
(14 Commentaires)
4.0
dezines99

Hi, Expert here,ready to start immediately. I will always available to discuss project specs.I have reviewed all your requirements and can deliver exactly what you are looking for, 100% guaranteed. I am confident to Plus

250 $ USD en 0 jours
(16 Commentaires)
3.9
biswas108

Hello, I am a professional web developer, I am efficient in wordpress website development & theme customization. I can create oustanding & unique design responsive website, wordpress theme and plugin. wordpress Plus

25 $ USD en 1 jour
(11 Commentaires)
3.7
mojitolabs

Hello, I read your project descriptions. You need wordpress theme back-end management of Portfolio items. I have a 7+ years of experience in wordpress and i assures you that i can do this project perfectly. My goal Plus

40 $ USD en 1 jour
(4 Commentaires)
3.5
sohilset

Hi,I am Sohil, I HAVE STUDIED YOUR DESCRIPTION .I WILL TWEAK YOUR WORDPRESS THEME BACK-END MGMT OF PORTFOLIO ITEMS,EXACTLY AS YOU NEEDED. I have Done Master's in Computers Science from University of Southern Califor Plus

20 $ USD en 0 jours
(6 Commentaires)
3.3
paddu008

Hello, Greetings Of the Day!! I have gone through the job description and I can perform these tasks easily. >>I am a Web Developer and Designer having 4+ years of experience in WordPress, its behavior, workflow Plus

25 $ USD en 1 jour
(24 Commentaires)
3.7
geetvaishnav3

Hello…..                 I have go through with your requirement carefully and I can start it immediately.I have more then 11 years works experience as Web Developer . I have made more than 50+ Websites to utilize my Plus

25 $ USD en 1 jour
(5 Commentaires)
2.6
mobi20

Helloo sir, I'm talented and highly experienced Web developer and WordPress Expert. Over the last 7 years. I have a wide variety of skills that I am able to provide my clients. And I am seeking opportunities to build Plus

25 $ USD en 1 jour
(8 Commentaires)
2.8
pinkcitysolution

Dear Hiring Manager, My work experience as shown in my profile have helped me develop mastery in WordPress. As proof, I got positive feedback from my previous employers regarding WordPress related projects. I'm a Plus

25 $ USD en 1 jour
(4 Commentaires)
2.4