+44 (0)785 715 1348
office@bogdans.co.uk

Currently Browsing: Wordpress

WordPress: get the text between a href anchor tags 0

Posted on 11, September 2013

in Category Web development

This is what you have to do in order to get the content between the a href / anchor tags: $out_vector = getTextBetweenTags(‘a’, $out); function getTextBetweenTags($tag, $html, $strict=0){ /*** a new dom object ***/ $dom = new domDocument; /*** load the html into the object ***/ if($strict==1) { $dom->loadXML($html); } else { $dom->loadHTML($html); } /*** discard white space ***/ $dom->preserveWhiteSpace = false; /*** the tag by its tag name ***/ $content = $dom->getElementsByTagname($tag); /*** the array to return ***/ $out = array(); foreach ($content as $item) { /*** add node value to the out array ***/ $out[] = $item->nodeValue; } [&hellip

Read More

Upload WordPress post thumb image with PHP 0

Posted on 26, July 2013

in Category Web development

Here’s what you need to use in order to upload the thumb automatically with PHP instead of manually from the backend. $upload_dir = wp_upload_dir(); $image_data = file_get_contents($image_url); $filename = basename($image_url); if(wp_mkdir_p($upload_dir[‘path’])) $file = $upload_dir[‘path’] . ‘/’ . $filename; else $file = $upload_dir[‘basedir’] . ‘/’ . $filename; file_put_contents($file, $image_data); $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => sanitize_file_name($filename), ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); require_once(ABSPATH . ‘wp-admin/includes/image.php’); $attach_data = wp_generate_attachment_metadata( $attach_id, $file ); wp_update_attachment_metadata( $attach_id, $attach_data ); set_post_thumbnail( $post_id, $attach_id )

Read More

Nintendo Customer Service Centre

Nintendo Customer Service Centre

Nintendo MK7 micro-site build and maintenance – both front-end (HTML, CSS and jQuery) and back-end via OOP PHP, MySQL database design and normalisation. Frameworks used – Drupal and WordPress. Project planning, scoping and managing long term search engine optimization campaigns for official Nintendo Customer Service Centre web site, staff training, web analytics and web / SEO audits performed over competitor web sites

Read More

BD Network

BD Network

Comprehensive set of development services including front-end (HTML, CSS and jQuery), back-end (PHP OOP, WordPress, Typo3 or Zend MVC), search engine optimization or search engine marketing along with project management. Technical requirements included:  HTML5, CSS3, JQuery – front-end development  PHP OOP and various CMSs and frameworks (WordPress, Drupal / Zend / YII) for back-end development  Implementing Google ranking factors within existing websites (considering Panda and Pinguin updates) – for the online marketing purposes  Strategy and consulting over the development process, workflow improvements, documentation, SoW, advising services for the entire product development life cycle. Delivered on various projects including Nintendo Mario [&hellip

Read More

B2B Consult

B2B Consult

Full set of technical services from server-side – LAMP environment setup and maintenance up to web development (back-end and front-end over various frameworks such as WordPress, Drupal, Typo3 or Joomla) or designing complex strategies for online marketing, including search engine optimization. Projects lasted between 1 and 9 months and took place in both UK and Eastern Europe. Out technical team has developed both remotely and on site

Read More

Christian-Democratic National Peasants’ Party

PNTCD

Project’s main objective was to promote PNTCD Romanian political party throughout the country and secure the available seats within the European Parliament for the group’s main public figures. Project lasted ~6 months, it required various resources and complex strategies to be designed and implemented in order to achieve our target and deliver it within time and on budget.  Visual identity design & integration  Software development for web technologies (front-end and back-end) – WordPress framework was used  Online marketing – various instruments such as SEO, PPC, banner-exchange, link-exchange, strategic partnerships  Standard marketing – from DTP operations and banner design up to [&hellip

Read More