Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Links list in homepage sorted by Menu Priority
#1
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!
Reply
#2
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
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?
Reply
#4
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>
Reply
#5
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"/>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#6
thanks mvlcek, it works!
Reply
#7
to get the plugin to output the meta description of the each item:

<?php echo htmlspecialchars($item->metad); ?>
Reply




Users browsing this thread: 1 Guest(s)