ScorpionGod Lair

Think Beyond The Standard Strategy

  • Home
  • About
  • Archives
  • Contact
You are here: Home / Archives for General

How To Get Genesis Post Featured Image (and) All Other Attached Images URLs

September 26, 2019 By Shyam Chathuranga Leave a Comment

When I was working on a quick Schema.org Microdata project, I wanted to get Genesis Featured Image for each post as well as all other images attached in the post body.

This code snippet will get just the Featured Image URL without any HTML tags in Genesis sites,

$featuredimage = genesis_get_image( array(
'format' => 'url',
'size' => 'full',
) );

echo $featuredimage;

Then following code will get all other images attached in the post to an Array. Then I got 2 Array Keys to output just the Image URL again,

$images = get_children( array (
'post_parent' => $post->ID,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'exclude' => get_post_thumbnail_id()
));

if (current($images)) {
$key1 = key($images);
}

if (next($images)) {
$key2 = key($images);
}

echo $images[$key1]->guid;
echo $images[$key2]->guid;

Tweet
PinIt
Email
Print

How To Get Tag ID by Tag Name, (and) Tag ID Directly On Tag Pages

September 25, 2019 By Shyam Chathuranga Leave a Comment

If you want to get Tag ID, when you already have the Tag Name, following code snippet can be used.

$tag = get_term_by ( 'name', single_tag_title( '', false ), 'post_tag' );
$tag_id = $tag->term_id;

If you don’t have the Tag Name already, this code can be used.

$tag_id = get_queried_object()->term_id;

I have tested both codes on Tag Archive pages.

Tweet
PinIt
Email
Print

Successful Blog Never Rely on Social Media and SEO

April 16, 2012 By Shyam Chathuranga 1 Comment

Now old-fashioned ways are old, those methods or strategies can’t make you success in What you want. So you need to think beyond those old goodies and strategies.

Think different and you’ll have a nice one.

There are two things bloggers always like to use, SEO – Search Engine Optimization and Social Media/Networking/Bookmarking. For now let me keep SEO aside. Let’s talk about Social Media a little.

From the very beginning of the Internet Marketing Social Media and other things were started.

[ Continue Reading …]

Tweet
PinIt
Email
Print

Enhanced Commenting Method For Better Rewards

April 8, 2012 By Shyam Chathuranga Leave a Comment

Comments!… You love to have comments in your posts and Others too. Other bloggers also love to have comments in their posts. But many people don’t use this thing for their benefit.

You can’t be a blogger alone.

You need to make blogging relationship with each other. Blog commenting can be mention as one way to build blog relationship. But you can get more than this thing from Blog commenting. To make sure you grab all the things you can get from it is to write a Good Optimized  Blog Comment.

There are many benefits you can grab by Blog Commenting.
[ Continue Reading …]

Tweet
PinIt
Email
Print

8 Common Internet Marketing Misconceptions

March 28, 2012 By Shyam Chathuranga 1 Comment

A coin has two sides, One side is called Head while the other one called Tail.

It tells something really valuable to you. Everything has two sides. Most of the ‘Actions’ has Conceptions & Misconceptions. You need to concentrate on Misconceptions little more than Conceptions …

Because, Misconceptions can destroy your Success in no time as long as you are sticking with those incorrect beliefs. That’s the main reason behind the unsuccessful persons of Internet Marketing.

Therefore, I want you to be successful Internet Marketer by eliminating these 8 common and crazy online marketing misconceptions right now.
[ Continue Reading …]

Tweet
PinIt
Email
Print
  • 1
  • 2
  • Next Page »

Start your website

HostGator 1st Month Free Coupon Code

Read Free Amazon Kindle Books

The Connections

Copyright © 2011–2025 ScorpionGod Lair™ · All Content Is Exclusive Rights Of ScorpionGod Lair.

Privacy Policy · Terms of Service · Press Lair · Archives · FAQs · IM Resources · Advertise · Sitemap

This site is owned and operated by Shyam Chathuranga Mahendra.