Posts: 42
Threads: 7
Joined: Feb 2010
I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.
i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?
thanks so much!
Posts: 2,094
Threads: 54
Joined: Jan 2011
tommy Wrote:I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.
i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?
thanks so much!
If all the pages are on the same level (with the same parent page), you can use the
I18N Plugin with
custom rendering.
Posts: 42
Threads: 7
Joined: Feb 2010
thanks i will try it out.
anyway, to echo the meta description into the homepage from each of the external pages is by using getPageField($page,metad), correct?
Posts: 42
Threads: 7
Joined: Feb 2010
mvlcek Wrote:tommy Wrote:I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.
i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?
thanks so much!
If all the pages are on the same level (with the same parent page), you can use the I18N Plugin with custom rendering.
how do i output a custom field called "myimage" for each of the subpages in the custom rendering?
i tried the code below but no image generated.
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php get_custom_field('$item->myimage'); ?>
</li>
Posts: 2,094
Threads: 54
Joined: Jan 2011
tommy Wrote:how do i output a custom field called "myimage" for each of the subpages in the custom rendering?
i tried the code below but no image generated.
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php get_custom_field('$item->myimage'); ?>
</li>
Assuming that the custom field contains the full image URL:
Code:
<img src="<?php echo htmlspecialchars($item->myimage); ?>" title="My Image"/>
Posts: 42
Threads: 7
Joined: Feb 2010
Posts: 42
Threads: 7
Joined: Feb 2010
2012-07-30, 13:32:36
(This post was last modified: 2012-07-30, 15:31:13 by sebbastian54.)
to get the plugin to output the meta description of the each item:
<?php echo htmlspecialchars($item->metad); ?>