Wordpress wpbakery grid builder custom button to externel link - php

I need a trick to add custom button in wpbakery grid builder for an externel link.
i wan't the link come with the post like custom field.
i've tried using ACF but doesn't work for me.

Related

How to make options for each page in wordpress

I am creating Dynamic wordpress template to publish it on themeforest and other Marketplace and i want to add specific options for each page (NOT options page) this options will show and the bottom of Add new page .
i wanna ask what is the name of this function or how i can add options like in the photo
You can research more on using wordpress custom fields,
Here is a good tutorial https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/
you can use ACF (Advanced Custom Fields) plugin for it. It is easy to create option for page, post, custom post using it and It has very good documentation.
here is the link :
https://wordpress.org/plugins/advanced-custom-fields/

How to add multiple images into custom post in wordpress for portfolio detail page

I want to display multiple images into my portfolio detail page which is created using custom post type
how to do it please help me.
You just need to use Advanced custom fields plugin.
Use the repeater field for image and select the custom post type you need to show this repeater field.
then use get_post_meta() to get all the images.

How to Hook into WordPress Custom Post Type Dashboard menu items

I am working on a WordPress plugin that will use a Custom Post Type.
I have created the Post type the standard WP way using the register_post_type('wpbp-backgrounds', $args); with the required args.
Creating the posts in this fashion creates the WP Dashboard menu items I need to access the new Custom Post.
The new menu I have is:
WP Backgrounds
Backgrounds
Add New Background
What I would like to do is hook into this Dashboard menu and add a third item which I can link to the plugin settings page. The menu would look like this:
WP Backgrounds
Backgrounds
Add New Background
Settings
Is this something that is possible? Any help would be greatly appreciated.
Using add_submenu_page(), you can add submenus to your CPT's menu using 'edit.php?post_type=wpbp-backgrounds' for your $parent_slug parameter.

Wordpress custom page attribute

I'm working on a custom WP theme that displays all "pages" as sections in a one page layout.
What I would like to do is add a color chooser to the page designer, so that the user can choose a color to be the background color of that section.
I'm totally new to wordpress so I don't even know what files or functions to look at to add this behavior.
Is there perhaps a prebuilt plugin to do something like this?
Four options:
use a plugin like Advanced Custom Fields or Custom Content Type Manager
ACF has a Lite version to add the meta box programmatically
a helper script like Custom Metaboxes and Fields for WordPress
do it yourself, using this Q&A as example: Add a checkbox to post screen that adds a class to the title
Probably, you'd want to change the visibility of the meta box according to the chosen page template, refer to this Q&A: Custom meta box shown when template is chosen

wordpress - add new category based admin panel menu tab

i want to show a new admin menu tab which will pull information from a certain category, i.e products.
I do not want to use custom Post types because i want to be able to change themes with out any modification to theme files, so please do not recommend that.
using wordpress function add_menu_page() i can add a new tab, but how to show new post page and existing posts of that category, exactly like custom post type.
thanks
Did you try the Menus?
If I'm not mistaken, what you want to do is to create a menu tab that can fetch the posts from a certain category
Create a post with your category
In your dashboard go to the Appearance > Menus
Name your Menu, after creating your New Menu
You can select what you want to add on that Menu
by checking it and clicking Add Menu, the Categories
are on the bottom part.
You should try to create your custom post types as part of a plugin anyway, as that's what WordPress recommends:
https://codex.wordpress.org/Post_Types#A_word_about_custom_post_types_as_a_plugin
That way you can them with any theme.

Categories