L4SN
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] All Pods in Feed (shortcode)Just got to the part about not doing any consulting, which I’m assuming means you are not interested in answering simple ‘help’ questions, which is all I was really looking for.
Could of just posted that. Would have saved a little time for both of us, and I honestly wouldn’t have been offended.
Have a good one.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] All Pods in Feed (shortcode)So…
There’s not a simple answer? lol
I’ve been looking through your shortcode page to try and get a better understanding of it’s capabilities, but I still need a point in the right direction if it exists.
I intend to have separate pods for each player so that my writers can go directly to that player, post an update for that player, and then have those updates listed on the individual player pages, the team pages, within the home page and on a splash page.
I’ve had several people recommend this to me as a solution to get away from CPTUI as it is rather cumbersome and slows down my site speed to a great degree.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] All Pods in Feed (shortcode)Or would this be accomplished more easily by creating a category for all of these pods and using the category to create the feed?
Forum: Plugins
In reply to: [WPMobile.App — Android and iOS Mobile Application] AdmobOk, thanks for responding quickly and good luck with your app.
Forum: Plugins
In reply to: [WPMobile.App — Android and iOS Mobile Application] AdmobAccording to Admob, their ads can be added to any app.
So what would be the reason why they can’t be added to this one?
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pod Template Info Above Page TitleI’ve added an additional hook directly to my original theme but the template will not appear above, below or replace that hook (additional nav menu).
Is there a step I’m missing?
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pod Template Info Above Page TitleThanks for the quick reply. ??
The issue that I am having is that it becomes part of the title block instead of appearing before it.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsThat got me straightened out!
Thanks!
Here’s the code in case anyone else would like to be able to utilize it –
<?php /* Plugin Name: Pods listing page */ function pods_admin_page() { ?> <div class="wrap"> <h1><?php echo get_admin_page_title(); ?></h1> <h2>Player List</h2> <ul> <?php $post_type = get_post_types( array( '_builtin' => false ) ); foreach ( $post_type as $post_type ) printf ( '<li><a href="%s">%s</a>', admin_url( 'edit.php?post_type=' . $post_type ), $post_type); ?> </ul> </div> <?php } function pods_menu_setup() { add_menu_page( 'Player List', 'Player List', 'edit_published_posts', 'pods', 'pods_admin_page' ); } add_action( 'admin_menu', 'pods_menu_setup' );
Thanks again for the help!
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsOk, I have it set up with a link in the admin menu (sidebar) that opens a landing page to edit post types.
<?php /* Plugin Name: Pods listing page */ function l4sn_pods_admin_page() { ?> <div class="wrap"> <h1><?php echo get_admin_page_title(); ?></h1> <h2>Player List</h2> <ul> <?php $pod = get_post_type($pod); foreach ( get_post_types() as $pod ) printf ( '<li><a href="%s">%s</a>', admin_url( 'edit.php?post_type=' . $pod ), $pod); ?> </ul> </div> <?php } function l4sn_pods_menu_setup() { add_menu_page( 'Player List', 'Player List', 'edit_published_posts', 'l4sn_pods', 'l4sn_pods_admin_page' ); } add_action( 'admin_menu', 'l4sn_pods_menu_setup' );
The only problem I have here is that it is listing everything that is linkable from the nave menu instead of just the custom post types from Pods.
Any help sorting that would be greatly appreciated.
- This reply was modified 5 years, 3 months ago by L4SN.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsYou can use any admin menu parent for that so that is up to you!
This needs to be the parent menu slug. See WP documentation: https://developer.www.ads-software.com/reference/functions/add_submenu_page/The plugin I’m setting up provides a clean link and landing page so that eliminates that issue.
That is because this code is incorrect. $pod_types_found is not declared yet.
You can use the WordPress function get_post_types() for that. See WP Codex: https://codex.www.ads-software.com/Function_Reference/get_post_typesThanks!
I’m slowly getting there… lol
But I appreciate the help, and I’ll probably be back with more questions.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsI’ve set up a plugin with this code to try and list all of the pods in one spot but I got a fatal error with ‘foreach’.
Here is the code –
<?php /* Plugin Name: Pods listing page */ function l4sn_pods_admin_page() { ?> <div class="wrap"> <h1><?php echo get_admin_page_title(); ?></h1> <h2>Player List</h2> <ul> <?php $pod = get_post_type(); foreach ( $pod_types_found as $pod_type ) { printf( '<li><a href="%s">%s</a>', admin_url( 'edit.php?post_type=' . $type ), $type ); } ?> </ul> </div> <?php }
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsAnd is there a way to list all of your pods custom post types on one admin page so that my writers can search through the list quickly to find what they want?
- This reply was modified 5 years, 3 months ago by L4SN.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Submenu for PodsI’m assuming it would probably be best to create a custom parent link?
Forum: Plugins
In reply to: [Posts in Page] Images in FeedNevermind, I figured it out.
Just needed to make a new template and get it in the right spot.
Forum: Plugins
In reply to: [Custom Post Type UI] Using ‘Post in Page’ to pull all tagged Custom UIThere is an issue when I try to use the shortcode on the extended version.
The screen goes a shade darker and when I try to click anywhere it goes back to normal, but closes the shortcode window.