| 开发者 |
thehopemonger
laurencebahiirwa |
|---|---|
| 更新时间 | 2026年5月19日 17:24 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8.5 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
--color-accent CSS variablerel="noopener"get_style_depends() API--fw-accent, --fw-radius, --fw-gap, --fw-shadow) on the widget wrapper make theme integration straightforwardesc_html(), esc_url(), esc_attr(), wp_kses_post(), absint(), and sanitize_text_field() on all inputs and outputsuninstall.php cleans all plugin transients from wp_options on deletionfetchwire folder to /wp-content/plugins/.No. FetchWire works with the WordPress REST API, which has been enabled by default since WordPress 4.7. As long as the source site has not deliberately disabled its REST API, FetchWire will work without any changes on their end.
Log in to the source site's WordPress dashboard and go to Posts → Categories (or Posts → Tags). Click the item you want to edit — the numeric ID appears in the browser address bar as tag_ID=123. Alternatively, hover over the category name in the list and the ID will appear in the status bar link.
https://example.com/wp-json/wp/v2/posts directly in a browser — you should see JSON output.Change any widget setting (e.g. toggle the section heading on and off) and save the page. This generates a new transient key and triggers a fresh fetch on the next page load.
Yes. Each FetchWire widget instance maintains its own source URL and its own cache. Drop as many instances as you need and point each at a different source.
Not yet. The current version fetches standard posts via /wp-json/wp/v2/posts. Custom post type support is planned for a future release.
Yes, as long as the /wp-json/wp/v2/posts endpoint is publicly accessible and returns the standard WP REST API response format with _embed support.
No. FetchWire makes server-side requests from your WordPress install to the source site — no visitor data is involved, and no third-party scripts are loaded on your frontend.
Yes. As of version 1.3.0, FetchWire includes a native Gutenberg block that works in the standard WordPress block editor — no Elementor needed. Search for "FetchWire News" in the block inserter.
If the remote request fails and no cached data exists, FetchWire renders an empty state notice in place of the feed. If cached data exists, it will continue to display until it expires.
.fw-wrap: --fw-accent, --fw-radius, --fw-gap, and --fw-shadow, making per-widget and per-theme overrides cleaner and more predictable.box-sizing: border-box scoped to the widget wrapper so padding cannot break card dimensions inside themes that still use content-box globally.overflow-x: hidden and max-width: 100% on .fw-wrap to prevent any internal layout from causing page-level horizontal scroll.min-width constraints on thumbnail images to prevent flex containers from collapsing them.min-width: 0 on grid items (.fw-card, .fw-overlay-card) to prevent min-content blowout in CSS Grid.minmax(0, 1fr) column tracks replacing plain 1fr, permanently fixing the overflow scrollbar that appeared when 4 cards exceeded their container width.clamp() on post titles across all layouts, scaling smoothly between breakpoints without hard pixel jumps.2/3 → 3/4 at 768 px → 4/3 at 520 px so cards remain a comfortable height on small screens.position: absolute; inset: 0 with object-fit: cover rather than the percentage padding-top trick, giving sharper rendering and simpler theming.wp_enqueue_scripts and elementor/frontend/after_register_styles so Elementor's asset manager can always resolve it regardless of page-load hook order.readme.txt fully restructured for WordPress.org reviewer requirements: complete widget reference, Privacy Policy section, Screenshots list, and Upgrade Notice entries.Requires at least, Requires PHP, Domain Path..fw-cat) was stretching full-width inside flex column containers. Fixed with align-self: flex-start and width: fit-content.border-bottom was incorrectly stripped from all penultimate items in 2-column state. Now only the true last row loses its separator.background-image. Fixed with position: absolute; inset: 0 on the inner element.1fr inheriting min-width: auto from grid children. Fixed with minmax(0, 1fr) tracks and min-width: 0 on all grid items._embedded['wp:term'] in the REST API response — no manual ID lookup needed for display.--color-accent CSS custom property, then #c8102e.Show Excerpt, Show Category Badge, and Show Date toggle controls.selectors binding.get_style_depends() on the Elementor widget class — the plugin stylesheet is loaded only on pages that contain the widget.uninstall.php — deletes all _transient_fetchwire_* and _transient_timeout_fetchwire_* rows from wp_options when the plugin is removed._embedded['author'][0]['name'] and stored in the post array for future layout use.class-fetchwire-logic.php refactored: excerpt cleaner now strips … HTML entities and trims whitespace before splitting by word count.excerpt_length so changing the word count correctly busts the cache.wp_strip_all_tags() applied to post titles before storage to prevent HTML entities from leaking into layout markup.