How would I add a custom meta box to my Wordpress theme that allows users to add a link to an external page from the featured image? I have a slider set up that pulls featured images from a custom post type and I'd like to be able to add an external link from that.
Thanks!
take a look at this
http://codex.wordpress.org/Function_Reference/add_meta_box
Related
I have an image that I would like to be used for thumbnails for the page, but I don't want that as a featured image when users come to the page. Does anyone know how to do this in wordpress?
Thank you.
You probably want to use ACF (Advanced Custom Fields) to add a new field for an image in posts (or you can create your own meta field just for the image). Then You can edit your theme to show whatever image, wherever you want.
ACF Plugin
If you just want to hide the featured image in every post, and only show it in blog page (or a page like that), you need to edit the post template.
https://developer.wordpress.org/themes/template-files-section/page-template-files/#page-templates-within-the-template-hierarchy
I ended up solving this by using an extension called 'Conditionally display featured image on singular posts and pages'. This allowed me to toggle off the the big picture on the post.
Is there a way from which I can use any plugin and show Post or Page specific image gallery? The image gallery upload area should be displayed in Page when Creating or Editing the page below or above the text composer or should be at least in the page. And this gallery should not be hocked the default Image gallery of wordpress or at least should not show the images that's in default gallery.
Kindly let me know if anybody knows any plugin that does the above mentioned job.
You can do this simply by [gallery] shortcode. You can also set image ids like this: [gallery ids="729,732,731,720"]
Here is my answer: All my requirement got fulfilled by default "Media Library" tab. I just need to select the option "Uploaded to this page" from the dropdown. So, no need to use any plugin for the requirement I had.
In my wordpress blog, I would like to select a featured image so that when url is shared on social network like facebook it has an image. but I do not want that image to show up on the page or the post of website.
You should modify the template responsible for post visualisation and add the OpenGraph meta tag.
Here's the documentation:
https://developers.facebook.com/docs/sharing/webmasters#markup
The tag you need is "og:image":
<meta property="og:image" content="<your image path>" />
It is not a big problem. There are lot of plugins from wordpress by which you can set featured image for any posts.
Here is the link to the plugin
Featured image plugin
you have to modify the single.php file and page.php file.
You can remove the code segment that show featured image from the above two files.
also there are some plugin may do this functionality,
you can check this, But I haven't check this one.
https://wordpress.org/plugins/hide-featured-image/
Is there any way to add a button to the WordPress page editor that'll append as many featured images as the user wants? I'm basically trying to use this as a slideshow system, but I can't figure it out. There are plugins that'll allow me to set up more featured images, but nothing that will allow the user to do so.
Personally, if I have to create a slideshow, I use the "Repeater" field of the Advanced Custom Fields plugin.
You could also set up a custom post type and add your banners that way.
I am putting together a site in wordpress, and we want to use the gallery for a product section. The problem is, the gallery seems to only point to the attachment file for the image, and I can't seem to change anything (add meta keyword, desc, etc..)
Is there a way to just make the gallery images point to a page? or is there a way to edit the html for the pre-generated "attachment" pages?
The [gallery] shortcode can be manipulated. But if you want a customized attachment page, you just need the template attachment.php in your theme files.
Here's one tutorial about it: How to Create a Custom Single Attachments Template in WordPress.
In this article, we will show you how to use the additional fields in the media uploader and display them in a custom single attachments template.