Skip Navigation

[Closed] Trying to create custom post archives by month

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Tagged: 

This topic contains 4 replies, has 3 voices.

Last updated by Beda 5 years, 9 months ago.

Assigned support staff: Beda.

Author
Posts
#315944

I am trying to: implement a View that lists the monthly archives of a custom post "News" as follows:

2015
- July
- June
-May
etc

2014
- Dec
- Nov etc

2013 and so on

I visited this URL and got some of the way https://toolset.com/forums/topic/grouping-posts-by-yearmonth-of-publish-date/ which lists the value

[wpv-post-date format="F"]

by month name but if I try to use any other formatting for the month it only displays current month (ie

[wpv-post-date format="n"]

shows 7, in the very same item that

[wpv-post-date format="F"]

is showing June.

A little help on creating a monthly archive by year please?

#316011

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Can you please provide some debug information about your site? Please see https://toolset.com/faq/provide-debug-information-faster-support/ for more information.

I have enabled debug information area for your next reply.

#316187

Here's the debug info from Types

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/localhost\/lswa","HomeURL":"http:\/\/localhost\/lswa","Version":"4.2.2","PermalinkStructure":"","PostTypes":"post, page, attachment, revision, nav_menu_item, wp-types-group, wp-types-user-group, view, view-template, news, event, venue, link, ad, slide, speaker","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit"},"Server":{"jQueryVersion":"1.11.2","PHPVersion":"5.6.8","MySQLVersion":"5.6.24","ServerSoftware":"Apache\/2.4.12 (Unix) OpenSSL\/1.0.1m PHP\/5.6.8 mod_perl\/2.0.8-dev Perl\/v5.16.3"},"PHP":{"MemoryLimit":"256M","UploadMax":"128M","PostMax":"128M","TimeLimit":"30","MaxInputVars":"1000"}},"plugins":{"active_plugins":{"add-category-to-pages\/add-category-to-page.php":{"Name":"Add Categories to Pages.","PluginURI":"http:\/\/spoontalk.com","Version":"1.0","Author":"a.ankit","AuthorURI":"http:\/\/spoontalk.com","TextDomain":"","DomainPath":"","Network":false,"Title":"Add Categories to Pages.","AuthorName":"a.ankit"},"ag-custom-admin\/plugin.php":{"Name":"AG Custom Admin","PluginURI":"http:\/\/wordpressadminpanel.com\/ag-custom-admin\/","Version":"1.4.7","Author":"Argonius","AuthorURI":"http:\/\/www.argonius.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"AG Custom Admin","AuthorName":"Argonius"},"akismet\/akismet.php":{"Name":"Akismet","PluginURI":"http:\/\/akismet.com\/","Version":"3.1.2","Author":"Automattic","AuthorURI":"http:\/\/automattic.com\/wordpress-plugins\/","TextDomain":"akismet","DomainPath":"","Network":false,"Title":"Akismet","AuthorName":"Automattic"},"backwpup\/backwpup.php":{"Name":"BackWPup","PluginURI":"https:\/\/marketpress.com\/product\/backwpup-pro\/","Version":"3.1.4","Author":"Inpsyde GmbH","AuthorURI":"http:\/\/inpsyde.com","TextDomain":"backwpup","DomainPath":"\/languages\/","Network":true,"Title":"BackWPup","AuthorName":"Inpsyde GmbH"},"bulletproof-security\/bulletproof-security.php":{"Name":"BulletProof Security","PluginURI":"http:\/\/forum.ait-pro.com\/read-me-first\/","Version":".52","Author":"AITpro | Edward Alexander","AuthorURI":"http:\/\/forum.ait-pro.com\/read-me-first\/","TextDomain":"bulletproof-security","DomainPath":"\/languages\/","Network":false,"Title":"BulletProof Security","AuthorName":"AITpro | Edward Alexander"},"custom-facebook-feed\/custom-facebook-feed.php":{"Name":"Custom Facebook Feed","PluginURI":"http:\/\/smashballoon.com\/custom-facebook-feed","Version":"2.3.5","Author":"Smash Balloon","AuthorURI":"http:\/\/smashballoon.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Custom Facebook Feed","AuthorName":"Smash Balloon"},"duplicator\/duplicator.php":{"Name":"Duplicator","PluginURI":"http:\/\/www.lifeinthegrid.com\/duplicator\/","Version":"0.5.22","Author":"LifeInTheGrid","AuthorURI":"http:\/\/www.lifeinthegrid.com","TextDomain":"","DomainPath":"","Network":false,"Title":"Duplicator","AuthorName":"LifeInTheGrid"},"google-analytics-for-wordpress\/googleanalytics.php":{"Name":"Google Analytics by Yoast","PluginURI":"https:\/\/yoast.com\/wordpress\/plugins\/google-analytics\/#utm_source=wordpress\u0026utm_medium=plugin\u0026utm_campaign=wpgaplugin\u0026utm_content=v504","Version":"5.4.2","Author":"Team Yoast","AuthorURI":"https:\/\/yoast.com\/","TextDomain":"google-analytics-for-wordpress","DomainPath":"\/languages","Network":false,"Title":"Google Analytics by Yoast","AuthorName":"Team Yoast"},"really-simple-twitter-feed-widget\/really_simple_twitter_widget.php":{"Name":"Really Simple Twitter Feed Widget","PluginURI":"http:\/\/www.whiletrue.it\/","Version":"3.0","Author":"Dabelon, tanaylakhani","AuthorURI":"http:\/\/www.whiletrue.it\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Really Simple Twitter Feed Widget","AuthorName":"Dabelon, tanaylakhani"},"shortcodes-ultimate\/shortcodes-ultimate.php":{"Name":"Shortcodes Ultimate","PluginURI":"http:\/\/gndev.info\/shortcodes-ultimate\/","Version":"4.9.7","Author":"Vladimir Anokhin","AuthorURI":"http:\/\/gndev.info\/","TextDomain":"su","DomainPath":"\/languages","Network":false,"Title":"Shortcodes Ultimate","AuthorName":"Vladimir Anokhin"},"types-access\/types-access.php":{"Name":"Access","PluginURI":"https:\/\/toolset.com\/home\/types-access\/","Version":"1.2.5","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Access","AuthorName":"OnTheGoSystems"},"types\/wpcf.php":{"Name":"Types","PluginURI":"http:\/\/wordpress.org\/extend\/plugins\/types\/","Version":"1.7","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"","DomainPath":"","Network":false,"Title":"Types","AuthorName":"OnTheGoSystems"},"ubermenu\/ubermenu.php":{"Name":"UberMenu 3 - The Ultimate WordPress Mega Menu","PluginURI":"http:\/\/wpmegamenu.com","Version":"3.2.0.2","Author":"Chris Mavricos, SevenSpark","AuthorURI":"http:\/\/sevenspark.com","TextDomain":"","DomainPath":"","Network":false,"Title":"UberMenu 3 - The Ultimate WordPress Mega Menu","AuthorName":"Chris Mavricos, SevenSpark"},"velvet-blues-update-urls\/velvet-blues-update-urls.php":{"Name":"Velvet Blues Update URLs","PluginURI":"http:\/\/www.velvetblues.com\/web-development-blog\/wordpress-plugin-update-urls\/","Version":"3.2.3","Author":"VelvetBlues.com","AuthorURI":"http:\/\/www.velvetblues.com\/","TextDomain":"velvet-blues-update-urls","DomainPath":"","Network":false,"Title":"Velvet Blues Update URLs","AuthorName":"VelvetBlues.com"},"wordfence\/wordfence.php":{"Name":"Wordfence Security","PluginURI":"http:\/\/www.wordfence.com\/","Version":"6.0.9","Author":"Wordfence","AuthorURI":"http:\/\/www.wordfence.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Wordfence Security","AuthorName":"Wordfence"},"wordpress-seo\/wp-seo.php":{"Name":"WordPress SEO","PluginURI":"https:\/\/yoast.com\/wordpress\/plugins\/seo\/#utm_source=wpadmin\u0026utm_medium=plugin\u0026utm_campaign=wpseoplugin","Version":"2.2.1","Author":"Team Yoast","AuthorURI":"https:\/\/yoast.com\/","TextDomain":"wordpress-seo","DomainPath":"\/languages\/","Network":false,"Title":"WordPress SEO","AuthorName":"Team Yoast"},"wp-google-maps\/wpGoogleMaps.php":{"Name":"WP Google Maps","PluginURI":"http:\/\/www.wpgmaps.com","Version":"6.2.0","Author":"WP Google Maps","AuthorURI":"http:\/\/www.wpgmaps.com","TextDomain":"","DomainPath":"","Network":false,"Title":"WP Google Maps","AuthorName":"WP Google Maps"},"wp-views\/wp-views.php":{"Name":"WP Views","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"1.9","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"","DomainPath":"","Network":false,"Title":"WP Views","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"LSWA Theme 2015","ThemeURI":null,"Author":"Joff Crabtree","AuthorURI":null,"Template":"reverie-master","Version":"","TextDomain":null,"DomainPath":null},"extra-debug":{"access":{"rules":{"types":[],"taxonomies":[]},"debug":[],"settings":{"types":{"_custom_read_errors":{"post":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"page":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"news":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"event":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"venue":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"link":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"ad":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}}},"_custom_read_errors_value":{"post":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"page":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"news":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"event":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"venue":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"link":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"ad":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}}},"_archive_custom_read_errors":{"news":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"event":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"venue":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"link":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"ad":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}}},"_archive_custom_read_errors_value":{"news":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"event":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"venue":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"link":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}},"ad":{"permissions":{"read":{"editor":"","author":"","contributor":"","subscriber":"","guest":"","everyone":""}}}},"post":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"page":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"attachment":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"news":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"event":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"venue":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"link":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}},"ad":{"mode":"not_managed","__permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}},"permissions":{"read":{"role":"administrator"},"read_private":{"role":"administrator"},"edit_own":{"role":"administrator"},"delete_own":{"role":"administrator"},"edit_any":{"role":"administrator"},"delete_any":{"role":"administrator"},"publish":{"role":"administrator"}}}},"tax":{"category":{"__permissions":{"manage_terms":{"role":"administrator"},"edit_terms":{"role":"administrator"},"delete_terms":{"role":"administrator"},"assign_terms":{"role":"administrator"}},"mode":"not_managed","permissions":{"manage_terms":{"role":"administrator"},"edit_terms":{"role":"administrator"},"delete_terms":{"role":"administrator"},"assign_terms":{"role":"administrator"}}},"post_tag":{"__permissions":{"manage_terms":{"role":"administrator"},"edit_terms":{"role":"administrator"},"delete_terms":{"role":"administrator"},"assign_terms":{"role":"administrator"}},"mode":"not_managed","permissions":{"manage_terms":{"role":"administrator"},"edit_terms":{"role":"administrator"},"delete_terms":{"role":"administrator"},"assign_terms":{"role":"administrator"}}}},"third_party":{"__FIELDS":{"__FIELDS_GROUP_venue-fields":{"permissions":{"view_fields_in_edit_page_venue-fields":{"role":"guest"},"modify_fields_in_edit_page_venue-fields":{"role":"author"}},"__permissions":{"view_fields_in_edit_page_venue-fields":{"role":"administrator"},"modify_fields_in_edit_page_venue-fields":{"role":"administrator"}},"mode":"permissions"},"__FIELDS_GROUP_event-fields":{"permissions":{"view_fields_in_edit_page_event-fields":{"role":"guest"},"modify_fields_in_edit_page_event-fields":{"role":"author"}},"__permissions":{"view_fields_in_edit_page_event-fields":{"role":"administrator"},"modify_fields_in_edit_page_event-fields":{"role":"administrator"}},"mode":"permissions"},"__FIELDS_GROUP_news-fields":{"permissions":{"view_fields_in_edit_page_news-fields":{"role":"guest"},"modify_fields_in_edit_page_news-fields":{"role":"author"}},"__permissions":{"view_fields_in_edit_page_news-fields":{"role":"administrator"},"modify_fields_in_edit_page_news-fields":{"role":"administrator"}},"mode":"permissions"}}}},"errors":[]},"types":{"add_resized_images_to_library":0,"register_translations_on_import":1,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types"},"views":{"views_template_loop_blog":"0","wpml_fix_urls":true,"wpv_bootstrap_version":1,"wpv_custom_conditional_functions":[],"wpv_custom_inner_shortcodes":[],"wpv_debug_mode":"","wpv_debug_mode_type":"compact","wpv_map_plugin":1,"wpv_show_edit_view_link":1,"wpv_show_hidden_fields":"","views_template_for_page":"302","views_template_for_event":341,"view_month-page":"390","view_cpt_news":"390"}}}

#316296

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for providing the info, although you didn't put it in the right place and wasn't much helpful. But I could guess a few things that looks like there are some Toolset plugins not updated - perhaps it's my fault reading the information correctly.

However, if you can pass on the information again, while adding in appropriate place, that will be great. Please see https://toolset.com/faq/provide-debug-information-faster-support/.

On the other hand, if possible, you can provide a temporary access to your site. So I can look for more details.

I have enabled your next reply as private, please input all details in that area. Please mention the links to the pages, views, forms, CPTs and configurations in question.

Please take a backup of your site, before proceeding.

#318221

Since Waqas currently has a few days off, I will replace him here in the forum.
I hope this is OK for you.

I do understand you are using a Custom ShortCode provided by Ana over a year ago.

I am not sure hat still works, as we usually don't support Custom Code.

Of course [wpv-post-date format="n"] should show 6 if [wpv-post-date format="F"] is showing June.

I will need to replicate this.

I would need a sites snapshot if possible.
We usually recommend the free Plugin "Duplicator" for this porpoise.

If you already know how Duplicator works
(http://wordpress.org/plugins/duplicator/),
please skip the following steps and just send me the installer file and the zipped package you downloaded.

★ Duplicator Instructions
hidden link
Send me both files (you probably want to use DropBox, Google Drive, or similar services, as the snapshot file will be quite big)

❌ IMPORTANT ❌
Remember to create or keep an admin account for me before creating the snapshot, or I won't be able to login. You may delete the new admin account once the snapshot has been built.

I will enable your next answer as private so you can provide me the information securely.

Please could you provide me the additional Details?

Thank you

The topic ‘[Closed] Trying to create custom post archives by month’ is closed to new replies.