Thanks in advance.
]]>[CURRENT CONFIG]: I set the homepage to display posts (works as expected), but am unable to designate a separate post list page such as /news/ or /blog-posts/.
[FORMER CONFIG]: I can also do the opposite scenario — but there is a bug. If I select a static page for the homepage and do NOT select a page, my homepage stays the same (shows posts and other Nimble Builder content). The news page — and ALL other post list pages — display the post teasers, but the top info such as breadcrumbs, title, and metadata is missing (bug).
In summary, can I specify posts on the homepage and have a posts page that functions properly? I cannot find anything about how to achieve this in docs, snippets, forum, etc. Is it feasible? Thank you!
—–
# SITE_URL: https://dev.franklinpiercefdn.org
# HOME_URL: https://dev.franklinpiercefdn.org
# IS MULTISITE : No
# THEME | VERSION : customizr-pro | v2.1.16# WP VERSION : 5.0.3
# PERMALINK STRUCTURE : /%year%/%monthnum%/%day%/%postname%/
# ACTIVE PLUGINS :
Akismet Anti-Spam: 4.1
Caldera Forms: 1.7.6
Classic Editor: 1.3.0.1
Custom Sidebars: 3.2.2
Loginizer: 1.4.1
Nimble Page Builder: 1.4.4
Pods – Custom Content Types and Fields: 2.7.12
SG Optimizer: 5.0.13
PHP Version: 7.0.33
MySQL Version: 5.6.40-84.0-log
Web Server Info: Apache
WordPress Memory Limit: 128MB
PHP Memory Limit: 768M
PHP Upload Max Size: 128M
PHP Post Max Size: 128M
PHP Upload Max Filesize: 128M
PHP Time Limit: 120
PHP Max Input Vars: 3000
PHP Arg Separator: &
PHP Allow URL File Open: Yes
WP_DEBUG: Disabled
Show On Front: posts
Page On Front: (#0)
Page For Posts: News (#220)
I have spent many hours browsing knowledgebase documentation and forum posts. I am not sure if I must create a custom archive template, or if there is a simpler way to get these posts to show in Customizr. And for a new user, the theme’s template file structure is not easy to figure out.
After I conquer the most basic question of showing all of my custom posts on an archive page, I would like to look for ways to perform custom filtering and sorting using the fields I created in the custom content type. I am able to show filtered lists in sidebars using the Pods widget. But how does one generate custom post lists in the page body?
Note that I do have proper archive pages filtered by custom taxonomy term (/scholarship_type/[term_name]) and by tag (/tag/[tag_name]). But I am not able to display all items at once.
I am using Customizr Pro with the child theme. I upgraded to Pro with the goal of accessing premium support, but it seems that this forum is the only option. All methods of personal support and contact are disabled on the author’s website: https://presscustomizr.com/support/ and https://presscustomizr.com/contact/. If anyone has tips on getting further help beyond this forum, please share.
Thanks in advance!
#### System Informations ####
# SITE_URL: https://dev.franklinpiercefdn.org
# HOME_URL: https://dev.franklinpiercefdn.org
# IS MULTISITE : No
# THEME | VERSION : customizr-pro | v2.1.15# WP VERSION : 5.0.3
# PERMALINK STRUCTURE : /%year%/%monthnum%/%day%/%postname%/
# ACTIVE PLUGINS :
Akismet Anti-Spam: 4.1
Caldera Forms: 1.7.6
Classic Editor: 1.3.0.1
Loginizer: 1.4.1
Nimble Page Builder: 1.4.2
Pods - Custom Content Types and Fields: 2.7.12
SG Optimizer: 5.0.12
PHP Version: 7.0.33
MySQL Version: 5.6.40-84.0-log
Web Server Info: Apache
WordPress Memory Limit: 128MB
PHP Memory Limit: 768M
PHP Upload Max Size: 128M
PHP Post Max Size: 128M
PHP Upload Max Filesize: 128M
PHP Time Limit: 120
PHP Max Input Vars: 3000
PHP Arg Separator: &
PHP Allow URL File Open: Yes
WP_DEBUG: Disabled
Show On Front: page
Page On Front: (#0)
Page For Posts: News (#220)
]]>Things I have tried:
On a possibly related note, I am unable to get tag list pages to show Scholarships. Example: https://dev.franklinpiercefdn.org/tag/healthcare/
I do not have a child theme installed and I have not edited the theme’s template files manually.
Any ideas are greatly appreciated!
]]>Maria
]]>This is the code I am using to make it link to meta-data found in the post:
add_filter('tc_grid_display_figcaption_content' , 'tc_grid_set_expanded_post_title');
function tc_grid_set_expanded_post_title( $_html ){
if ( ! $this -> tc_force_current_post_expansion() )
return $_html;
global $post;
$_title = apply_filters( 'tc_grid_expanded_title' , $post->post_title );
$_title = apply_filters( 'tc_the_title' , $_title );
$_title = apply_filters( 'tc_grid_expanded_title_html';
$linkvalue = get_post_meta($post->ID, 'affiliate_link', true);
if($linkvalue) {
sprintf('<h2 class="entry-title"><a href="' . $linkvalue . '" rel="bookmark">%1$s</a></h2>',
$_title
) );
}
else {
sprintf('<h2 class="entry-title">%1$s</h2>',
$_title
) );
}
return $_html . $_title;
}
It doesn’t work.
]]>ie., Instead of the entry title being “Hello World”, it would display the output of item_price
. (item_price
being a custom field defined in the post.)
I assume this can be done with a hook. I’m just now learning how hooks work. any help would be awesome.
Bonus
I’d also like to make the entry-title linkable to another custom field. ie., Instead of linking to nothing, it would like to the output of item_link
. (item_link
being another, separate custom meta field defined in the post.)