Saturday, 31 March 2018

Custom field

Put this code


<?php echo get_post_meta($post->ID, 'tumbnail', true); ?>


example


<p>Today's Mood: <?php echo get_post_meta($post->ID, 'tumbnail', true); ?></p>



<?php $key_name = get_post_custom_values($key = 'tumbnail');
                            echo $key_name[0]; ?>

under this code


    <?php while ( have_posts() ) : the_post(); ?>

Thursday, 22 March 2018

CSS TEXT LENGTH

.class {
display: block; /* or inline-block */
text-overflow: ellipsis;
word-wrap: break-word;
overflow: hidden;
max-height: 3.6em;
line-height: 1.8em; }

Wednesday, 7 March 2018

Solve angular serve problem

Problem

$ ng serve --open
Versions of @angular/compiler-cli and typescript could not be determined.
The most common reason for this is a broken npm install.

Please make sure your package.json contains both @angular/compiler-cli and types                                                             cript in
devDependencies, then delete node_modules and package-lock.json (if you have one                                                             ) and
run npm install again.

Solve

npm install --save @angular/compiler-cli


Tuesday, 6 March 2018

Easy Deploy Localhost & Live Using Google Drive


  1. Google Drive Account - We gonna use My Drive
  2. Xampp - This for localhost development for php actually
  3. https://drv.tw/ account
  4. Synkron https://sourceforge.net/projects/synkron/?source=typ_redirect
Method

  1. Create 1 folder inside My Drive and set it public.
  2. Create web on xampp
  3. sync both file samename using synkron
  4. Open drv.tw
  5. Get the link by refresh
  6. Done..
Now you got both local and live!

Monday, 5 March 2018

Using Drive or Dropbox to host Static Web

Droppages.com - 50mb/5usd for 1Gig
https://drv.tw/ using drive - a littlebit slow

Saturday, 3 March 2018

WP Material Design Materializer


http://codys.club/materializer/
https://wordpress.org/plugins/materializer/#description

Color Scheme

  • White
  • Black
  • Blue Grey
  • Grey
  • Brown
  • Deep Orange
  • Orange
  • Amber
  • Yellow
  • Lime
  • Light Green
  • Green
  • Teal
  • Cyan
  • Light Blue
  • Blue
  • Indigo
  • Deep Purple
  • Purple
  • Pink
  • Red
Light and Dark Color
  • darken-4 ( scale 1-4)
  • lighten-5 ( scale 1-5)

email mailto: pretext

 <a href="mailto:designoutsourced.com+info@gmail.com?subject=Maklumat%20lanjut%20pakej&body=Hai,%20saya%20berminat%20tahu%20lebi...